From 685d1bb8aaf1d11151a5be6e999713062c8497b9 Mon Sep 17 00:00:00 2001 From: jgfrm Date: Mon, 6 Feb 2017 20:53:04 +0100 Subject: [PATCH] return correct type in nlink --- src/cmds/restic/integration_helpers_unix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }