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

Commit 6945584

Browse files
author
Dan Richelson
committed
Fix string comparison
1 parent 918a6e3 commit 6945584

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
@@ -73,7 +73,7 @@ public boolean matchTarget(LDUser user) {
7373
for (TargetRule target: targets) {
7474
// If a userTarget rule is present, nested "key" rules
7575
// are deprecated and should be ignored
76-
if (userTarget != null && target.attribute == "key") {
76+
if (userTarget != null && target.attribute.equals("key")) {
7777
continue;
7878
}
7979
if (target.matchTarget(user)) {

0 commit comments

Comments
 (0)