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

Commit 2f89b0d

Browse files
author
Dan Richelson
committed
AllFlags no longer returns null when client is offline.
1 parent 0157693 commit 2f89b0d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,11 @@ private void sendFlagRequestEvent(String featureKey, LDUser user, JsonElement va
200200
@Override
201201
public Map<String, JsonElement> allFlags(LDUser user) {
202202
if (isOffline()) {
203-
logger.warn("allFlags() was called when client is in offline mode! Returning null.");
204-
return null;
203+
logger.warn("allFlags() was called when client is in offline mode!");
205204
}
206205

207206
if (!initialized()) {
208207
logger.warn("allFlags() was called before Client has been initialized! Returning null.");
209-
return null;
210208
}
211209

212210
if (user == null || user.getKey() == null) {

0 commit comments

Comments
 (0)