mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
refactor: use errors.New to replace fmt.Errorf with no parameters (#15007)
Signed-off-by: LesCyber <andi4cing@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ func AggregateCompressedSignatures(multiSigs [][]byte) (common.Signature, error)
|
||||
// MultipleSignaturesFromBytes creates a group of BLS signatures from a LittleEndian 2d-byte slice.
|
||||
func MultipleSignaturesFromBytes(multiSigs [][]byte) ([]common.Signature, error) {
|
||||
if len(multiSigs) == 0 {
|
||||
return nil, fmt.Errorf("0 signatures provided to the method")
|
||||
return nil, errors.New("0 signatures provided to the method")
|
||||
}
|
||||
for _, s := range multiSigs {
|
||||
if len(s) != fieldparams.BLSSignatureLength {
|
||||
|
||||
Reference in New Issue
Block a user