Skip to content

Commit ecbf8cc

Browse files
committed
If in offline mode, all_flags should return an empty hash
1 parent 1ac3051 commit ecbf8cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ldclient-rb/ldclient.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ def all_keys
214214
# Returns all feature flags
215215
#
216216
def all_flags
217+
return Hash.new if @offline
218+
217219
if @config.stream? && !@stream_processor.started?
218220
@stream_processor.start
219221
end

0 commit comments

Comments
 (0)