Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit d276b97

Browse files
committed
Merge pull request #46 from launchdarkly/dr/fixStringCompare
Fix string comparison
2 parents adceb4a + 6945584 commit d276b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/launchdarkly/client/Variation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public boolean matchTarget(LDUser user) {
7272
for (TargetRule target: targets) {
7373
// If a userTarget rule is present, nested "key" rules
7474
// are deprecated and should be ignored
75-
if (userTarget != null && target.attribute == "key") {
75+
if (userTarget != null && target.attribute.equals("key")) {
7676
continue;
7777
}
7878
if (target.matchTarget(user)) {

0 commit comments

Comments
 (0)