mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core/filtermaps: remove tautological nil check
nextRes is nil-checked in the condition above, no need to do it again.
This commit is contained in:
parent
f27166ce94
commit
c150991801
1 changed files with 1 additions and 1 deletions
|
|
@ -832,7 +832,7 @@ func (params *Params) matchResults(mapIndex uint32, offset uint64, baseRes, next
|
|||
// result equals baseRes.
|
||||
return baseRes
|
||||
}
|
||||
if baseRes == nil || (nextRes != nil && len(nextRes) == 0) {
|
||||
if baseRes == nil || len(nextRes) == 0 {
|
||||
// if baseRes is a wild card or nextRes is empty then the sequence matcher
|
||||
// result is the items of nextRes with a negative offset applied.
|
||||
result := make(potentialMatches, 0, len(nextRes))
|
||||
|
|
|
|||
Loading…
Reference in a new issue