mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
Merge pull request #721 from gzliudan/fix-s1025
contracts: fix staticcheck warning S1025: unnecessary fmt.Sprintf("%s", x)
This commit is contained in:
commit
b74fccc04d
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