Skip to content

Commit

Permalink
use var initialisation for slice
Browse files Browse the repository at this point in the history
  • Loading branch information
mjd95 committed May 22, 2019
1 parent 4b4e3ef commit b71c5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ func coverInterval(min, max int64, blocks []*bucketBlock) []*bucketBlock {
return []*bucketBlock{}
}

coveringBlocks := []*bucketBlock{}
var coveringBlocks []*bucketBlock
for _, b := range blocks {
if b.meta.MaxTime <= min {
continue
Expand Down

0 comments on commit b71c5d2

Please sign in to comment.