Skip to content

Commit 27179b0

Browse files
committed
lint
Signed-off-by: Alan Protasio <alanprot@gmail.com>
1 parent ed6d9b0 commit 27179b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/querier/tripperware/instantquery/instant_query_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/cortexproject/cortex/pkg/querier/tripperware"
15-
16-
"github.com/cortexproject/cortex/pkg/cortexpb"
1714
"github.com/prometheus/common/model"
1815
"github.com/stretchr/testify/assert"
1916
"github.com/stretchr/testify/require"
2017
"github.com/weaveworks/common/httpgrpc"
2118
"github.com/weaveworks/common/user"
19+
20+
"github.com/cortexproject/cortex/pkg/cortexpb"
21+
"github.com/cortexproject/cortex/pkg/querier/tripperware"
2222
)
2323

2424
func TestRequest(t *testing.T) {

pkg/querier/tripperware/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func decodeSampleStream(ptr unsafe.Pointer, iter *jsoniter.Iterator) {
9191
case "metric":
9292
iter.ReadVal(&lbls)
9393
case "values":
94-
for {
94+
for {
9595
if !iter.ReadArray() {
9696
break
9797
}
@@ -104,7 +104,7 @@ func decodeSampleStream(ptr unsafe.Pointer, iter *jsoniter.Iterator) {
104104

105105
*(*SampleStream)(ptr) = SampleStream{
106106
Samples: samples,
107-
Labels: cortexpb.FromLabelsToLabelAdapters(lbls),
107+
Labels: cortexpb.FromLabelsToLabelAdapters(lbls),
108108
}
109109
}
110110

0 commit comments

Comments
 (0)