[#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
if rem == nil && add == nil {
return
} else if rem != nil && add == nil {
discarded = append(discarded, rem.Transactions()...)
return
} else if rem == nil && add != nil {
included = append(included, add.Transactions()...)
if rem == nil || add == nil {
if rem != nil{
discarded = append(discarded, rem.Transactions()...)
}
if add != nil{
included = append(included, add.Transactions()...)
}
return
}