diff --git a/src/cmds/restic/integration_helpers_test.go b/src/cmds/restic/integration_helpers_test.go index 5bc66c0fa..c71b12067 100644 --- a/src/cmds/restic/integration_helpers_test.go +++ b/src/cmds/restic/integration_helpers_test.go @@ -33,7 +33,7 @@ func walkDir(dir string) <-chan *dirEntry { fmt.Fprintf(os.Stderr, "error: %v\n", err) return nil } - + ch <- &dirEntry{ path: name, fi: info, diff --git a/src/cmds/restic/integration_helpers_unix_test.go b/src/cmds/restic/integration_helpers_unix_test.go index 5220f4db6..0d830ff06 100644 --- a/src/cmds/restic/integration_helpers_unix_test.go +++ b/src/cmds/restic/integration_helpers_unix_test.go @@ -36,7 +36,7 @@ func (e *dirEntry) equals(other *dirEntry) bool { fmt.Fprintf(os.Stderr, "%v: GID does not match (%v != %v)\n", e.path, stat.Gid, stat2.Gid) return false } - + if stat.Nlink != stat2.Nlink { fmt.Fprintf(os.Stderr, "%v: Number of links doe not match (%v != %v)\n", e.path, stat.Nlink, stat2.Nlink) return false @@ -45,7 +45,7 @@ func (e *dirEntry) equals(other *dirEntry) bool { return true } -func nlink(info os.FileInfo) (uint64) { +func nlink(info os.FileInfo) uint64 { stat, _ := info.Sys().(*syscall.Stat_t) return stat.Nlink } diff --git a/src/cmds/restic/integration_helpers_windows_test.go b/src/cmds/restic/integration_helpers_windows_test.go index 483a0ddcd..b2043152a 100644 --- a/src/cmds/restic/integration_helpers_windows_test.go +++ b/src/cmds/restic/integration_helpers_windows_test.go @@ -26,6 +26,6 @@ func (e *dirEntry) equals(other *dirEntry) bool { return true } -func nlink(info os.FileInfo) (uint64) { +func nlink(info os.FileInfo) uint64 { return 1 -} \ No newline at end of file +} diff --git a/src/cmds/restic/integration_test.go b/src/cmds/restic/integration_test.go index c9babc34e..bca349071 100644 --- a/src/cmds/restic/integration_test.go +++ b/src/cmds/restic/integration_test.go @@ -1048,4 +1048,3 @@ func TestHardLink(t *testing.T) { testRunCheck(t, gopts) }) } -