From 6828cf0c27bfb3cc3ea7a53a3126540ac2dc1fca Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 29 Jun 2023 22:52:27 +0800 Subject: [PATCH] chore: the argument is already a string, there's no need to use fmt.Sprintf --- modinterval/modinterval_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modinterval/modinterval_test.go b/modinterval/modinterval_test.go index e168046..bbded1a 100644 --- a/modinterval/modinterval_test.go +++ b/modinterval/modinterval_test.go @@ -359,7 +359,7 @@ func TestIntIntervalEquality(t *testing.T) { wantEqualSets: true, }, } { - t.Run(fmt.Sprintf("%s", tt.name), func(t *testing.T) { + t.Run(tt.name, func(t *testing.T) { if want, got := tt.wantEqualSets, tt.a.EqualSets(tt.b); got != want { t.Errorf("%s.EqualSets(%s) = %v, want %v", tt.a, tt.b, got, want) }