Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink committed Jan 10, 2023
1 parent e66f5f4 commit e1a60fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ func NewMeasures(in MeasuresIn) (MeasuresOut, error) {
},
)
err = multierr.Append(err, metricErr)
cpm, err := in.Factory.NewCounterVec(
cpm, err2 := in.Factory.NewCounterVec(
prometheus.CounterOpts{
Name: ChrysomPollsTotalCounterName,
Help: ChrysomPollsTotalCounterHelp,
},
OutcomeLabel,
)
err = multierr.Append(err, err2)

return MeasuresOut{
M: &Measures{
Expand Down
4 changes: 2 additions & 2 deletions transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
"time"
Expand Down Expand Up @@ -98,7 +98,7 @@ func addWebhookRequestDecoder(config transportConfig) kithttp.DecodeRequestFunc
}

return func(c context.Context, r *http.Request) (request interface{}, err error) {
requestPayload, err := ioutil.ReadAll(r.Body)
requestPayload, err := io.ReadAll(r.Body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit e1a60fa

Please sign in to comment.