diff --git a/src/cmds/restic/integration_helpers_unix_test.go b/src/cmds/restic/integration_helpers_unix_test.go index 86a040eb4..43234379f 100644 --- a/src/cmds/restic/integration_helpers_unix_test.go +++ b/src/cmds/restic/integration_helpers_unix_test.go @@ -49,7 +49,7 @@ func (e *dirEntry) equals(other *dirEntry) bool { func nlink(info os.FileInfo) (uint64, error) { stat, err := restic.ToStatT(info.Sys()) if err { - return nil, ok + return 0, err } return stat.Nlink(info), err }