mirror of
https://github.com/restic/restic.git
synced 2025-12-13 12:02:59 +00:00
Collapse a few boolean operations
This commit is contained in:
@@ -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