Skip to content
Snippets Groups Projects
Unverified Commit 14a67ab9 authored by Gabriel Zachmann's avatar Gabriel Zachmann Committed by GitHub
Browse files

Merge pull request #4 from oidc-mytoken/deepsource-fix-df48b18c

Remove unnecessary use of slice
parents 346a2a56 69f840f1
No related branches found
No related tags found
No related merge requests found
......@@ -21,5 +21,5 @@ func SHA512Str(data []byte) string {
func HMACSHA512Str(data, secret []byte) string {
h := hmac.New(sha512.New, secret)
hmac := h.Sum(data)
return base64.StdEncoding.EncodeToString(hmac[:])
return base64.StdEncoding.EncodeToString(hmac)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment