mirror of
https://github.com/restic/restic.git
synced 2026-10-13 05:27:13 +00:00
Collapse a few boolean operations
This commit is contained in:
1 parent
49b6aac3fa
commit
460e2ffbf6
3 files changed
+4
-14
No files matched your search
@@ -1417,11 +1417,7 @@ func linksEqual(source, dest map[uint64][]string) bool {
|
||||
}
|
||||
}
|
||||
|
||||
if len(dest) != 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
return len(dest) == 0
|
||||
}
|
||||
|
||||
func linkEqual(source, dest []string) bool {
|
||||
|
||||
Reference in new issue
Block a user