Skip to content

Commit a95da47

Browse files
committed
Merge pull request #56 from launchdarkly/jko/offline-all
If in offline mode, all_flags should return an empty hash
2 parents 1ac3051 + ecbf8cc commit a95da47

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)