From ecbf8ccd1e24016e4b0c54f6d3989b5bba1d62e9 Mon Sep 17 00:00:00 2001 From: John Kodumal Date: Thu, 18 Feb 2016 17:56:25 -0800 Subject: [PATCH] If in offline mode, all_flags should return an empty hash --- lib/ldclient-rb/ldclient.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ldclient-rb/ldclient.rb b/lib/ldclient-rb/ldclient.rb index 7976a61b..6e031aaf 100644 --- a/lib/ldclient-rb/ldclient.rb +++ b/lib/ldclient-rb/ldclient.rb @@ -214,6 +214,8 @@ def all_keys # Returns all feature flags # def all_flags + return Hash.new if @offline + if @config.stream? && !@stream_processor.started? @stream_processor.start end