[#19212] code cleanup

This commit is contained in:
Jeff Wentworth 2019-03-08 10:29:06 +09:00
parent 472a66bb12
commit 80a2999624

View file

@ -394,13 +394,13 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
) )
// handle cases where rem or add could come up nil // handle cases where rem or add could come up nil
if rem == nil && add == nil { if rem == nil || add == nil {
return if rem != nil{
} else if rem != nil && add == nil { discarded = append(discarded, rem.Transactions()...)
discarded = append(discarded, rem.Transactions()...) }
return if add != nil{
} else if rem == nil && add != nil { included = append(included, add.Transactions()...)
included = append(included, add.Transactions()...) }
return return
} }