Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
  • Loading branch information
ArthurSens committed Feb 5, 2024
1 parent f27ddc1 commit 36d5bfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion expfmt/openmetrics_create.go
Expand Up @@ -22,9 +22,10 @@ import (
"strconv"
"strings"

"github.com/prometheus/common/model"
"google.golang.org/protobuf/types/known/timestamppb"

"github.com/prometheus/common/model"

dto "github.com/prometheus/client_model/go"
)

Expand Down
4 changes: 2 additions & 2 deletions expfmt/openmetrics_create_test.go
Expand Up @@ -32,7 +32,7 @@ func TestCreateOpenMetrics(t *testing.T) {
t.Error(err)
}

var scenarios = []struct {
scenarios := []struct {
in *dto.MetricFamily
options []EncoderOption
out string
Expand Down Expand Up @@ -543,7 +543,7 @@ foos_created 12345.6
Help: proto.String("Number of foos."),
Type: dto.MetricType_COUNTER.Enum(),
Metric: []*dto.Metric{
&dto.Metric{
{
Counter: &dto.Counter{
Value: proto.Float64(42),
CreatedTimestamp: openMetricsTimestamp,
Expand Down

0 comments on commit 36d5bfb

Please sign in to comment.