Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2020-04-10 12:25:25 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-04-14 19:19:36 +0300
commitff414ff895a778df25f4d1b11f304612995c3b10 (patch)
treef5d68ad2c2173a30549803da8413dfc31670d68b /auth
parentb64d38d6c42166bafc27615af6e5244226471b67 (diff)
Static code analysis: introduction of new linters
New linter 'unconvert' reports about unneeded type conversions.
Diffstat (limited to 'auth')
-rw-r--r--auth/token.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/token.go b/auth/token.go
index 9355750aa..755d68933 100644
--- a/auth/token.go
+++ b/auth/token.go
@@ -89,7 +89,7 @@ func ExtractAuthInfo(ctx context.Context) (*AuthInfo, error) {
return nil, err
}
- split := strings.SplitN(string(token), ".", 3)
+ split := strings.SplitN(token, ".", 3)
// v1 is base64-encoded using base64.StdEncoding, which cannot contain a ".".
// A v1 token cannot slip through here.