mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Add errcheck and gosimple linters (#9729)
* Add errcheck linter * Check unchecked error * Add gosimple linter * Remove type assertion to same type * Omit nil check len() for nil slices is defined as zero * Revert "Remove type assertion to same type" This reverts commitaf69ca1ac8. * Revert "Revert "Remove type assertion to same type"" This reverts commit5fe8931504. Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
committed by
GitHub
parent
5b3375638a
commit
7f3ec4221f
@@ -57,7 +57,7 @@ func AggregatePublicKeys(pubs [][]byte) (common.PublicKey, error) {
|
||||
if features.Get().SkipBLSVerify {
|
||||
return &PublicKey{}, nil
|
||||
}
|
||||
if pubs == nil || len(pubs) == 0 {
|
||||
if len(pubs) == 0 {
|
||||
return nil, errors.New("nil or empty public keys")
|
||||
}
|
||||
agg := new(blstAggregatePublicKey)
|
||||
|
||||
Reference in New Issue
Block a user