mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +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.
|
// XORKeyStream can work in-place if the two arguments are the same.
|
||||||
stream.XORKeyStream(ciphertext, ciphertext)
|
stream.XORKeyStream(ciphertext, ciphertext)
|
||||||
|
|
||||||
return fmt.Sprintf("%s", ciphertext)
|
return string(ciphertext[:])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate random string.
|
// Generate random string.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue