Collapse a few boolean operations

This commit is contained in:
Michael Eischer
2020-03-06 23:35:09 +01:00
parent 49b6aac3fa
commit 460e2ffbf6
3 changed files with 4 additions and 14 deletions

View File

@@ -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 {