Apply go fix -minmax ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:25:56 +02:00
parent 0e4f288e83
commit 8ed263c6dd
4 changed files with 4 additions and 17 deletions
+1 -4
View File
@@ -446,10 +446,7 @@ func newSizeHistogram(sizeLimit uint64) *sizeHistogram {
growthFactor := uint64(10)
for lowerBound < sizeLimit {
upperBound := lowerBound*growthFactor - 1
if upperBound > sizeLimit {
upperBound = sizeLimit
}
upperBound := min(lowerBound*growthFactor-1, sizeLimit)
h.buckets = append(h.buckets, sizeClass{lowerBound, upperBound, 0})
lowerBound *= growthFactor
}