From df432c88064aa3e9fec15ac549887040f54ac63e Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Fri, 28 Feb 2020 18:09:57 +0100 Subject: [PATCH] fix: typo --- pkg/utils/hash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/hash.go b/pkg/utils/hash.go index ce97969..78c007f 100644 --- a/pkg/utils/hash.go +++ b/pkg/utils/hash.go @@ -25,7 +25,7 @@ func GetHashAlgorithm(sigAlgorithm jose.SignatureAlgorithm) (hash.Hash, error) { func HashString(hash hash.Hash, s string, firstHalf bool) string { hash.Write([]byte(s)) // hash documents that Write will never return an error - size = hash.Size() + size := hash.Size() if firstHalf { size = size / 2 }