Skip to content

Commit 4502429

Browse files
author
Bilal Al
committed
polish
1 parent e9e852e commit 4502429

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

client/src/main/java/io/split/engine/experiments/SplitParser.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,18 @@ private ParsedSplit parseWithoutExceptionHandling(Split split) {
7575
}
7676

7777
private boolean checkUnsupportedMatcherExist(List<io.split.client.dtos.Matcher> matchers) {
78+
MatcherType typeCheck = null;
7879
for (io.split.client.dtos.Matcher matcher : matchers) {
80+
typeCheck = null;
7981
try {
80-
MatcherType typeCheck = matcher.matcherType;
82+
typeCheck = matcher.matcherType;
8183
} catch (NullPointerException e) {
8284
// If the exception is caught, it means unsupported matcher
83-
return true;
85+
break;
8486
}
8587
}
86-
return false;
88+
if (typeCheck != null) return false;
89+
return true;
8790
}
8891

8992
private ParsedCondition getTemplateCondition() {

0 commit comments

Comments
 (0)