contracts: fix staticcheck warning S1025: unnecessary fmt.Sprintf("%s", x)

This commit is contained in:
Daniel Liu 2024-10-31 16:16:56 +08:00
parent cea75c625a
commit 5132d7f7e0

View file

@ -556,7 +556,7 @@ func Decrypt(key []byte, cryptoText string) string {
// XORKeyStream can work in-place if the two arguments are the same.
stream.XORKeyStream(ciphertext, ciphertext)
return fmt.Sprintf("%s", ciphertext)
return string(ciphertext[:])
}
// Generate random string.