metalinter fix

This commit is contained in:
Todd Gruben 2019-01-23 13:50:01 -06:00
parent 15494becac
commit 790123410f

View file

@ -233,15 +233,15 @@ func (b *Bitmap) Count() (n uint64) {
}
// Size returns the number of bytes required for the bitmap.
func (b *Bitmap) Size() (numbytes int) {
func (b *Bitmap) Size() int {
numbytes := 0
citer, _ := b.Containers.Iterator(0)
for citer.Next() {
_, c := citer.Value()
numbytes += c.size()
}
return
return numbytes
}
// CountRange returns the number of bits set between [start, end).