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:
@ -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