forked from cerc-io/plugeth
all: remove unneeded parentheses (#21921)
* remove uneeded convertion type * remove redundant type in composite literal * omit explicit type where implicit * remove unused redundant parenthesis * remove redundant import alias duktape
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"math/big"
|
||||
)
|
||||
|
||||
var fuz int = 10
|
||||
var fuz = 10
|
||||
|
||||
func randScalar(max *big.Int) *big.Int {
|
||||
a, _ := rand.Int(rand.Reader, max)
|
||||
|
||||
@@ -46,7 +46,7 @@ func parsePrivateKey(key string) (k ed25519.PrivateKey, header []byte, keyNum []
|
||||
if string(keydata[:2]) != "Ed" {
|
||||
return nil, nil, nil, errInvalidKeyHeader
|
||||
}
|
||||
return ed25519.PrivateKey(keydata[40:]), keydata[:2], keydata[32:40], nil
|
||||
return keydata[40:], keydata[:2], keydata[32:40], nil
|
||||
}
|
||||
|
||||
// SignFile creates a signature of the input file.
|
||||
|
||||
Reference in New Issue
Block a user