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

Commit 9fb7dcc

Browse files
author
Dan Richelson
committed
Removed unneeded unboxing
1 parent e425f2d commit 9fb7dcc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ public boolean toggle(String featureKey, LDUser user, boolean defaultValue) {
174174
sendFlagRequestEvent(featureKey, user, defaultValue, defaultValue);
175175
return defaultValue;
176176
} else {
177-
boolean value = val.booleanValue();
178-
sendFlagRequestEvent(featureKey, user, value, defaultValue);
179-
return value;
177+
sendFlagRequestEvent(featureKey, user, val, defaultValue);
178+
return val;
180179
}
181180
} catch (Exception e) {
182181
logger.error("Encountered exception in LaunchDarkly client", e);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public boolean initialized() {
264264
if (initCache != null) {
265265
Boolean initialized = initCache.getUnchecked(INIT_KEY);
266266

267-
if (initialized != null && initialized.booleanValue()) {
267+
if (initialized != null && initialized) {
268268
return true;
269269
}
270270
}

0 commit comments

Comments
 (0)