Skip to content

Commit e9e852e

Browse files
author
Bilal Al
committed
polish
1 parent 8e7d57e commit e9e852e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import io.split.client.dtos.Partition;
88
import io.split.client.dtos.Split;
99
import io.split.client.dtos.ConditionType;
10+
import io.split.client.dtos.MatcherType;
1011
import io.split.engine.matchers.AllKeysMatcher;
1112
import io.split.engine.matchers.AttributeMatcher;
1213
import io.split.engine.matchers.BetweenMatcher;
@@ -76,7 +77,7 @@ private ParsedSplit parseWithoutExceptionHandling(Split split) {
7677
private boolean checkUnsupportedMatcherExist(List<io.split.client.dtos.Matcher> matchers) {
7778
for (io.split.client.dtos.Matcher matcher : matchers) {
7879
try {
79-
matcher.matcherType.equals(null);
80+
MatcherType typeCheck = matcher.matcherType;
8081
} catch (NullPointerException e) {
8182
// If the exception is caught, it means unsupported matcher
8283
return true;

0 commit comments

Comments
 (0)