Skip to content

Commit

Permalink
make linter happier even in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene <eugene@amberpixels.io>
  • Loading branch information
amberpixels committed Nov 29, 2024
1 parent 43262f6 commit b89a13f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prometheus/promsafe/safe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package promsafe_test
import (
"fmt"
"log"
"strconv"
"testing"

"github.com/prometheus/client_golang/prometheus"
Expand Down Expand Up @@ -113,8 +114,8 @@ type TestLabelsFast struct {
func (t TestLabelsFast) ToPrometheusLabels() prometheus.Labels {
return prometheus.Labels{
"label1": t.Label1,
"label2": fmt.Sprintf("%d", t.Label2),
"label3": fmt.Sprintf("%t", t.Label3),
"label2": strconv.Itoa(t.Label2),
"label3": strconv.FormatBool(t.Label3),
}
}
func (t TestLabelsFast) ToLabelNames() []string {
Expand Down

0 comments on commit b89a13f

Please sign in to comment.