Skip to content
Snippets Groups Projects
Unverified Commit 69f840f1 authored by deepsource-autofix[bot]'s avatar deepsource-autofix[bot] Committed by GitHub
Browse files

Remove unnecessary use of slice

parent 899ce262
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