Skip to content

Commit dd191f6

Browse files
author
Arthur Silva Sens
committed
Fix linting issues
Signed-off-by: Arthur Silva Sens <[email protected]>
1 parent eb00b96 commit dd191f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

expfmt/openmetrics_create.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import (
2222
"strconv"
2323
"strings"
2424

25-
"github.com/prometheus/common/model"
2625
"google.golang.org/protobuf/types/known/timestamppb"
2726

27+
"github.com/prometheus/common/model"
28+
2829
dto "github.com/prometheus/client_model/go"
2930
)
3031

expfmt/openmetrics_create_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestCreateOpenMetrics(t *testing.T) {
3232
t.Error(err)
3333
}
3434

35-
var scenarios = []struct {
35+
scenarios := []struct {
3636
in *dto.MetricFamily
3737
options []ToOpenMetricsOption
3838
out string
@@ -543,7 +543,7 @@ foos_created 12345.6
543543
Help: proto.String("Number of foos."),
544544
Type: dto.MetricType_COUNTER.Enum(),
545545
Metric: []*dto.Metric{
546-
&dto.Metric{
546+
{
547547
Counter: &dto.Counter{
548548
Value: proto.Float64(42),
549549
CreatedTimestamp: openMetricsTimestamp,

0 commit comments

Comments
 (0)