From 4380bc615f1a19df6d57e21b3cbf68730d4edaff Mon Sep 17 00:00:00 2001 From: shubhendra Date: Thu, 25 Feb 2021 14:31:02 +0530 Subject: [PATCH] Remove unnecessary use of `fmt.Sprintf` --- .deepsource.toml | 12 ------------ auth/jwt/transport_test.go | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml deleted file mode 100644 index f6c0dd8fa..000000000 --- a/.deepsource.toml +++ /dev/null @@ -1,12 +0,0 @@ -version = 1 - -test_patterns = ["**/*_test.go"] - -exclude_patterns = ["examples/**"] - -[[analyzers]] -name = "go" -enabled = true - - [analyzers.meta] - import_paths = ["github.com/go-kit/kit"] diff --git a/auth/jwt/transport_test.go b/auth/jwt/transport_test.go index 096c6ac31..91037ee3c 100644 --- a/auth/jwt/transport_test.go +++ b/auth/jwt/transport_test.go @@ -76,7 +76,7 @@ func TestGRPCToContext(t *testing.T) { } // Invalid Authorization header is passed - md["authorization"] = []string{fmt.Sprintf("%s", signedKey)} + md["authorization"] = []string{signedKey} ctx = reqFunc(context.Background(), md) token = ctx.Value(JWTContextKey) if token != nil {