diff --git a/pkg/query/iter.go b/pkg/query/iter.go index e01aeb49c29..6213d2c0315 100644 --- a/pkg/query/iter.go +++ b/pkg/query/iter.go @@ -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 }