Skip to content

Commit 3a25c02

Browse files
authored
chore: Improve documentation in ContextMatchesRule (#173)
1 parent b064127 commit 3a25c02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flagsmith.Engine/Segment/Evaluator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ private static bool ContextMatchesRule<_, __>(EvaluationContext<_, __> context,
117117
bool matchesConditions;
118118

119119
if (rule?.Conditions is null || !rule.Conditions.Any())
120+
// Sometimes rules are just groupers of subrules, having no intrinsic conditions
120121
matchesConditions = true;
121122
else
122123
switch (rule.Type)

0 commit comments

Comments
 (0)