diff --git a/src/cmds/restic/integration_helpers_test.go b/src/cmds/restic/integration_helpers_test.go index ed9e4022f..d439d5542 100644 --- a/src/cmds/restic/integration_helpers_test.go +++ b/src/cmds/restic/integration_helpers_test.go @@ -35,9 +35,9 @@ func walkDir(dir string) <-chan *dirEntry { return nil } - stat, err := restic.ToStatT(info.Sys()) + stat, ok := restic.ToStatT(info.Sys()) - if !err { + if !ok { return nil }