diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-04-10 12:25:25 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-04-14 19:19:36 +0300 |
commit | ff414ff895a778df25f4d1b11f304612995c3b10 (patch) | |
tree | f5d68ad2c2173a30549803da8413dfc31670d68b /auth | |
parent | b64d38d6c42166bafc27615af6e5244226471b67 (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.go | 2 |
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. |