Skip to content

Commit 3eff00c

Browse files
committed
polish
1 parent e649a3c commit 3eff00c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

splitio/models/grammar/matchers/rule_based_segment.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ def _match(self, key, attributes=None, context=None):
3737
if self._match_conditions(rbs_segment.conditions, key, attributes, context):
3838
return True
3939

40-
if self._match_conditions(context['ec'].segment_rbs_conditions.get(self._rbs_segment_name), key, attributes, context):
41-
return True
42-
43-
return False
40+
return self._match_conditions(context['ec'].segment_rbs_conditions.get(self._rbs_segment_name), key, attributes, context):
4441

4542
def _add_matcher_specific_properties_to_json(self):
4643
"""Return UserDefinedSegment specific properties."""

0 commit comments

Comments
 (0)