chore: initialize some slice type variables (#4249)

This commit is contained in:
yonwoo9
2024-07-15 23:50:42 +08:00
committed by GitHub
parent 9f8455ddb3
commit c02fb3acab
7 changed files with 12 additions and 10 deletions

View File

@@ -105,7 +105,7 @@ func newRedisBitSet(store *redis.Redis, key string, bits uint) *redisBitSet {
}
func (r *redisBitSet) buildOffsetArgs(offsets []uint) ([]string, error) {
var args []string
args := make([]string, 0, len(offsets))
for _, offset := range offsets {
if offset >= r.bits {