Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb88846

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ foos_created 12345.6
551551
Help: proto.String("Number of foos."),
552552
Type: dto.MetricType_COUNTER.Enum(),
553553
Metric: []*dto.Metric{
554-
&dto.Metric{
554+
{
555555
Counter: &dto.Counter{
556556
Value: proto.Float64(42),
557557
CreatedTimestamp: openMetricsTimestamp,

0 commit comments

Comments
 (0)