Skip to content

Commit c881437

Browse files
committed
Make linter happy
1 parent ab0b797 commit c881437

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/dedup/merge_iter.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ func (m *mergedSeries) Iterator(_ chunkenc.Iterator) chunkenc.Iterator {
4949
}
5050

5151
type quorumValuePicker struct {
52-
currentValue int64
53-
cnt int
52+
currentValue int64
53+
cnt int
5454
}
5555

5656
func NewQuorumValuePicker(v float64) *quorumValuePicker {
@@ -98,8 +98,8 @@ func (m *mergedSeriesIterator) Next() chunkenc.ValueType {
9898
continue
9999
}
100100
// apply penalty to avoid selecting samples too close
101-
m.oks[i] = it.Seek(m.lastT + initialPenalty) != chunkenc.ValNone
102-
// The it.Seek() call above should garantee that it.AtT() > m.lastT.
101+
m.oks[i] = it.Seek(m.lastT+initialPenalty) != chunkenc.ValNone
102+
// The it.Seek() call above should guarantee that it.AtT() > m.lastT.
103103
if m.oks[i] {
104104
t, v := it.At()
105105
if t < minT {
@@ -123,7 +123,8 @@ func (m *mergedSeriesIterator) Next() chunkenc.ValueType {
123123

124124
func (m *mergedSeriesIterator) Seek(t int64) chunkenc.ValueType {
125125
// Don't use underlying Seek, but iterate over next to not miss gaps.
126-
for m.lastT < t && m.Next() != chunkenc.ValNone {}
126+
for m.lastT < t && m.Next() != chunkenc.ValNone {
127+
}
127128
// Don't call m.Next() again!
128129
if m.lastIter == nil {
129130
return chunkenc.ValNone

0 commit comments

Comments
 (0)