Skip to content

Commit

Permalink
chore: delint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Sep 9, 2024
1 parent 047139b commit 3603ff2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion touchbundle/metricField.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (mf metricField) parseUint32(tagName string) (v uint32, err error) {
if len(tagValue) > 0 {
var u64 uint64
u64, err = strconv.ParseUint(tagValue, 10, 32)
v = uint32(u64)
v = uint32(u64) //nolint:gosec
}

return
Expand Down
2 changes: 1 addition & 1 deletion touchtest/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (a *Assertions) Expect(g prometheus.Gatherer) *Assertions {
if err == nil {
a.buffer.Reset()
a.names = make(map[string]bool)
enc := expfmt.NewEncoder(&a.buffer, expfmt.FmtText)
enc := expfmt.NewEncoder(&a.buffer, expfmt.NewFormat(expfmt.TypeTextPlain))

if closer, ok := enc.(expfmt.Closer); ok {
defer closer.Close()
Expand Down
2 changes: 1 addition & 1 deletion untyped_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (suite *NewUntypedFuncSuite) setupExpectation(v float64) io.Reader {

var (
output = new(bytes.Buffer)
encoder = expfmt.NewEncoder(output, expfmt.FmtText)
encoder = expfmt.NewEncoder(output, expfmt.NewFormat(expfmt.TypeTextPlain))
)

if c, ok := encoder.(io.Closer); ok {
Expand Down

0 comments on commit 3603ff2

Please sign in to comment.