Skip to content

Commit

Permalink
lint: preallocate var bucket temp
Browse files Browse the repository at this point in the history
  • Loading branch information
rzkmak committed Oct 14, 2020
1 parent e0870bd commit b0a9d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func parseBucketOptions(rawBuckets string) []time.Duration {
return []time.Duration{}
}

var result []time.Duration
result := make([]time.Duration, 0)

stringBuckets := strings.Split(rawBuckets, ",")

Expand Down

0 comments on commit b0a9d0e

Please sign in to comment.