Skip to content

Commit d68528f

Browse files
committed
[Where] Light refactoring.
1 parent db9df6e commit d68528f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/StructLinq/Where/WhereEnumerable.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ public WhereVisitor(Func<TIn, bool> function, ref TVisitor visitor)
9797
[MethodImpl(MethodImplOptions.AggressiveInlining)]
9898
public bool Visit(TIn input)
9999
{
100-
if (function(input))
101-
return visitor.Visit(input);
102-
return true;
100+
return !function(input) || visitor.Visit(input);
103101
}
104102
}
105103
}

0 commit comments

Comments
 (0)