Skip to content

Commit

Permalink
refactor: change to t.Fatal(err) (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Oct 28, 2024
1 parent 3bead6f commit 21344f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion revivelib/core_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func getMockRevive(t *testing.T) *Revive {
NewExtraRule(&mockRule{}, lint.RuleConfig{}),
)
if err != nil {
t.Fatal(err.Error())
t.Fatal(err)
}

return revive
Expand Down
2 changes: 1 addition & 1 deletion revivelib/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func getMockRevive(t *testing.T) *revivelib.Revive {
revivelib.NewExtraRule(&mockRule{}, lint.RuleConfig{}),
)
if err != nil {
t.Fatal(err.Error())
t.Fatal(err)
}

return revive
Expand Down

0 comments on commit 21344f1

Please # to comment.