diff --git a/src/cmds/restic/integration_helpers_test.go b/src/cmds/restic/integration_helpers_test.go index 5bc66c0fa..c37b1fca3 100644 --- a/src/cmds/restic/integration_helpers_test.go +++ b/src/cmds/restic/integration_helpers_test.go @@ -34,10 +34,16 @@ func walkDir(dir string) <-chan *dirEntry { return nil } + link, err := nlink(info) + if err != nil { + fmt.Fprintf(os.Stderr, "error: %v\n", err) + return nil + } + ch <- &dirEntry{ path: name, fi: info, - link: nlink(info), + link: link, } return nil diff --git a/src/cmds/restic/integration_helpers_windows_test.go b/src/cmds/restic/integration_helpers_windows_test.go index fd11f17f9..45743b643 100644 --- a/src/cmds/restic/integration_helpers_windows_test.go +++ b/src/cmds/restic/integration_helpers_windows_test.go @@ -27,5 +27,5 @@ func (e *dirEntry) equals(other *dirEntry) bool { } func nlink(info os.FileInfo) (uint64, error) { - return 1, err + return 1, nil } \ No newline at end of file