Clean up some lint warnings

I ran golangci-lint and it pointed out a few things to clean up.
This commit is contained in:
Bryan Boreham committed 2020-07-31 10:28:55 +00:00
1 parent 28e482af14
commit 34dc4dabce
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -560,7 +560,7 @@ func (r *Ring) ChoosePeersToAskForSpace(start, end address.Address) []mesh.PeerN
break
}
// Ignore ranges with no free space
if entry.Free <= 0 {
if entry.Free == 0 {
continue
}