diff --git a/src/cmds/restic/cmd_backup.go b/src/cmds/restic/cmd_backup.go index 99fdfb15d..48e8f2d31 100644 --- a/src/cmds/restic/cmd_backup.go +++ b/src/cmds/restic/cmd_backup.go @@ -181,14 +181,14 @@ func samePaths(expected, actual []string) bool { } for i := range expected { - found := false - for j := range actual { - if expected[i] == actual[j] { - found = true - break - } - } - if !found { + found := false + for j := range actual { + if expected[i] == actual[j] { + found = true + break + } + } + if !found { return false } }