Skip to content

Commit

Permalink
chore: Replace io/ioutil with io
Browse files Browse the repository at this point in the history
io/ioutil is deprecated and was failing golangci-lint
  • Loading branch information
laynax committed Oct 14, 2022
1 parent 6edae2e commit d0fa726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tracking/sentry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tracking

import (
"errors"
"io/ioutil"
"io"
"testing"

"github.com/getsentry/sentry-go"
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestSentryHookManualTag(t *testing.T) {
func newMockLogger(hook *Hook) *logrus.Logger {
logger := logrus.New()

logger.SetOutput(ioutil.Discard)
logger.SetOutput(io.Discard)
logger.Hooks.Add(hook)

return logger
Expand Down

0 comments on commit d0fa726

Please sign in to comment.