mirror of
https://github.com/mgechev/revive.git
synced 2024-12-02 09:02:23 +02:00
refactor: change to t.Fatal(err) (#1081)
This commit is contained in:
parent
3bead6f4a0
commit
21344f1bd5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user