1
0
mirror of https://github.com/mgechev/revive.git synced 2024-12-04 10:24:49 +02:00

refactor: change to t.Fatal(err) (#1081)

This commit is contained in:
Oleksandr Redko 2024-10-28 13:21:57 +02:00 committed by GitHub
parent 3bead6f4a0
commit 21344f1bd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func getMockRevive(t *testing.T) *Revive {
NewExtraRule(&mockRule{}, lint.RuleConfig{}), NewExtraRule(&mockRule{}, lint.RuleConfig{}),
) )
if err != nil { if err != nil {
t.Fatal(err.Error()) t.Fatal(err)
} }
return revive return revive

View File

@ -98,7 +98,7 @@ func getMockRevive(t *testing.T) *revivelib.Revive {
revivelib.NewExtraRule(&mockRule{}, lint.RuleConfig{}), revivelib.NewExtraRule(&mockRule{}, lint.RuleConfig{}),
) )
if err != nil { if err != nil {
t.Fatal(err.Error()) t.Fatal(err)
} }
return revive return revive