Skip to content

Commit

Permalink
fix: Address new linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kinbiko committed Jun 28, 2024
1 parent 69dd83b commit b0b481e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func TestConfigurationValidation(t *testing.T) {
expMsg: `app version must be valid semver`,
},
} {
tc := tc
t.Run(tc.name, func(t *testing.T) {
err := tc.cfg.validate()
if err == nil {
Expand Down
1 change: 0 additions & 1 deletion context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func TestContextWithMethods(t *testing.T) {
{"WithMetadatum", func() { n.WithMetadatum(ctx, "whatever", "foo", "bar") }},
{"WithUser", func() { n.WithUser(ctx, User{}) }},
} {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
defer func() {
Expand Down
2 changes: 0 additions & 2 deletions error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func TestSeverityReasonType(t *testing.T) {
{exp: "userSpecifiedSeverity", err: Error{Severity: SeverityError}},
{exp: "userSpecifiedSeverity", err: Error{Severity: SeverityError, Unhandled: true, Panic: true}},
} {
tc := tc
t.Run(tc.exp, func(t *testing.T) {
t.Parallel()
if got := severityReasonType(&tc.err); got != tc.exp {
Expand Down Expand Up @@ -101,7 +100,6 @@ func TestWrap(t *testing.T) {
{ctx: nil, err: err, msg: fmtBase, args: args, expErrString: wrappedFmtMsg, name: "all args but ctx"},
{ctx: ctx, err: err, msg: fmtBase, args: args, expErrString: wrappedFmtMsg, name: "all args"},
} {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
if tc.msg != "" || tc.args != nil {
Expand Down
1 change: 0 additions & 1 deletion notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func TestApp(t *testing.T) {
exp: `{ "duration": 5000, "releaseStage": "staging", "version": "1.5.2" }`,
},
} {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
tc.cfg.appStartTime = time.Now().Add(-5 * time.Second)
Expand Down
1 change: 0 additions & 1 deletion session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func TestSessionAndContext(t *testing.T) {
{expUnhandledCount: 1, expHandledCount: 0, name: "unhandled", unhandled: true},
{expUnhandledCount: 0, expHandledCount: 1, name: "handled", unhandled: false},
} {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
n, err := New(Configuration{APIKey: "abcd1234abcd1234abcd1234abcd1234", ReleaseStage: "dev", AppVersion: "1.2.3"})
Expand Down

0 comments on commit b0b481e

Please sign in to comment.