From be995ed92bfcceded27a8b830f07a962dd751e7b Mon Sep 17 00:00:00 2001 From: Jo Turk Date: Wed, 11 Feb 2026 12:50:34 +0200 Subject: [PATCH] Use constant format string --- uri_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uri_test.go b/uri_test.go index 5edf333..a9da10b 100644 --- a/uri_test.go +++ b/uri_test.go @@ -93,7 +93,7 @@ func TestParseURL(t *testing.T) { case errors.As(err, &urlError): err = urlError.Err case errors.As(err, &addrError): - err = fmt.Errorf(addrError.Err) //nolint:err113, govet + err = fmt.Errorf("%s", addrError.Err) //nolint:err113 } assert.EqualError(t, err, testCase.expectedErr.Error(), "testCase: %d %v", i, testCase) }