diff options
Diffstat (limited to 'internal/crypto/crypto.go')
-rw-r--r-- | internal/crypto/crypto.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/crypto/crypto.go b/internal/crypto/crypto.go index 0b0ab6c6..c99beeb8 100644 --- a/internal/crypto/crypto.go +++ b/internal/crypto/crypto.go @@ -17,8 +17,7 @@ import ( // HashFromBytes returns a SHA-256 checksum of the input. func HashFromBytes(value []byte) string { - sum := sha256.Sum256(value) - return fmt.Sprintf("%x", sum) + return fmt.Sprintf("%x", sha256.Sum256(value)) } // Hash returns a SHA-256 checksum of a string. |