From 21344f1bd526f24aaeb7aa85bc9ae365b7777173 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Mon, 28 Oct 2024 13:21:57 +0200 Subject: [PATCH] refactor: change to t.Fatal(err) (#1081) --- revivelib/core_internal_test.go | 2 +- revivelib/core_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/revivelib/core_internal_test.go b/revivelib/core_internal_test.go index 3de7643..ea1f779 100644 --- a/revivelib/core_internal_test.go +++ b/revivelib/core_internal_test.go @@ -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 diff --git a/revivelib/core_test.go b/revivelib/core_test.go index 3e401f6..045711a 100644 --- a/revivelib/core_test.go +++ b/revivelib/core_test.go @@ -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