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:
Felix Lange 2025-03-17 15:38:57 +01:00
parent f27166ce94
commit c150991801

View file

@ -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))