mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Reorder lines to have err check immediately after expression
This commit is contained in:
parent
faecd257d6
commit
e6b77cb38d
1 changed files with 4 additions and 3 deletions
|
|
@ -229,13 +229,14 @@ func ApplyRip7560ValidationPhases(chainConfig *params.ChainConfig, bc ChainConte
|
||||||
return nil, resultAccountValidation.Err
|
return nil, resultAccountValidation.Err
|
||||||
}
|
}
|
||||||
aad, err := validateAccountEntryPointCall(epc)
|
aad, err := validateAccountEntryPointCall(epc)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
// clear the EntryPoint calls array after parsing
|
// clear the EntryPoint calls array after parsing
|
||||||
epc.err = nil
|
epc.err = nil
|
||||||
epc.Input = nil
|
epc.Input = nil
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = validateValidityTimeRange(header.Time, aad.ValidAfter.Uint64(), aad.ValidUntil.Uint64())
|
err = validateValidityTimeRange(header.Time, aad.ValidAfter.Uint64(), aad.ValidUntil.Uint64())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue