mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
contracts: fix staticcheck warning S1025: unnecessary fmt.Sprintf("%s", x)
This commit is contained in:
parent
cea75c625a
commit
5132d7f7e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue