From 4a5d0748bdd31244e2f3763ffc0bf63591ace069 Mon Sep 17 00:00:00 2001 From: Sebastian Rabenhorst Date: Tue, 24 Jan 2023 12:01:26 +0100 Subject: [PATCH] Dedup iter nit --- pkg/query/iter.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }