Skip to content

Commit

Permalink
Dedup iter nit
Browse files Browse the repository at this point in the history
  • Loading branch information
rabenhorst committed Jan 24, 2023
1 parent dc81061 commit 4a5d074
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/query/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ func (it *chunkSeriesIterator) AtT() int64 {
func (it *chunkSeriesIterator) Next() chunkenc.ValueType {
lastT := it.AtT()

var valueType chunkenc.ValueType
if valueType = it.chunks[it.i].Next(); valueType != chunkenc.ValNone {
if valueType := it.chunks[it.i].Next(); valueType != chunkenc.ValNone {
it.lastVal = valueType
return valueType
}
Expand Down

0 comments on commit 4a5d074

Please sign in to comment.