Skip to content

Commit

Permalink
Dedup iter nit
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Rabenhorst <[email protected]>
  • Loading branch information
rabenhorst committed Jan 24, 2023
1 parent 908330e commit 6bc4626
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 6bc4626

Please sign in to comment.