Enable whitespace linter & fix findings (#12273)

* Enable whitespace linter & fix findings

* Fix new finding

* fix new violation

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
This commit is contained in:
Justin Traglia
2023-04-18 13:58:27 -05:00
committed by GitHub
parent 03f63f294b
commit 8428a79971
54 changed files with 3 additions and 84 deletions

View File

@@ -172,5 +172,4 @@ func (km *Keymanager) ListKeymanagerAccounts(ctx context.Context, cfg keymanager
fmt.Println(" ")
}
return nil
}

View File

@@ -277,7 +277,6 @@ func (km *Keymanager) SaveStoreAndReInitialize(ctx context.Context, store *accou
accountsKeystore, err := CreateAccountsKeystoreRepresentation(ctx, store, km.wallet.Password())
if err != nil {
return err
}
encodedAccounts, err := json.MarshalIndent(accountsKeystore, "", "\t")
if err != nil {

View File

@@ -348,7 +348,6 @@ func MapBeaconBlockBodyAltair(body *ethpb.BeaconBlockBodyAltair) (*BeaconBlockBo
block.Deposits[i] = deposit
}
for i, exit := range body.VoluntaryExits {
exit, err := MapSignedVoluntaryExit(exit)
if err != nil {
return nil, fmt.Errorf("could not map signed voluntary exit at index %v: %v", i, err)

View File

@@ -620,7 +620,6 @@ func MockForkInfo() *v1.ForkInfo {
},
GenesisValidatorsRoot: make([]byte, fieldparams.RootLength),
}
}
// MockAttestation is a mock implementation of the Attestation.