Skip to content

Commit 75cce3b

Browse files
author
Gediminas
committed
lint
1 parent 2741f99 commit 75cce3b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/aggregator/aggregator/elem_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,12 @@ func TestCounterResetSetData(t *testing.T) {
158158

159159
func TestCounterResetSetDataInvalidAggregationType(t *testing.T) {
160160
opts := NewOptions()
161-
ce := MustNewCounterElem(nil, policy.EmptyStoragePolicy, maggregation.DefaultTypes, applied.DefaultPipeline, testNumForwardedTimes, NoPrefixNoSuffix, opts)
162-
err := ce.ResetSetData(testCounterID, testStoragePolicy, maggregation.Types{maggregation.Last}, applied.DefaultPipeline, 0, NoPrefixNoSuffix)
161+
ce := MustNewCounterElem(nil, policy.EmptyStoragePolicy,
162+
maggregation.DefaultTypes, applied.DefaultPipeline,
163+
testNumForwardedTimes, NoPrefixNoSuffix, opts)
164+
err := ce.ResetSetData(testCounterID, testStoragePolicy,
165+
maggregation.Types{maggregation.Last}, applied.DefaultPipeline,
166+
0, NoPrefixNoSuffix)
163167
require.Error(t, err)
164168
}
165169

src/cmd/services/m3coordinator/ingest/m3msg/ingest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestIngest(t *testing.T) {
9393
},
9494
Tags: models.NewTags(2, nil).AddTags(
9595
[]models.Tag{
96-
models.Tag{
96+
{
9797
Name: []byte("__name__"),
9898
Value: []byte("foo"),
9999
},

src/query/storage/converter.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ func SeriesAttributesToAnnotationPayload(seriesAttributes ts.SeriesAttributes) (
154154
var metricType annotation.MetricType
155155

156156
switch seriesAttributes.PromType {
157-
158157
case ts.PromMetricTypeUnknown:
159158
metricType = annotation.MetricType_UNKNOWN
160159

0 commit comments

Comments
 (0)