lib/rollout.rb in rollout-2.4.4 vs lib/rollout.rb in rollout-2.4.5
- old
+ new
@@ -262,9 +262,11 @@
f.data = {}
end
end
def multi_get(*features)
+ return [] if features.empty?
+
feature_keys = features.map { |feature| key(feature) }
@storage.mget(*feature_keys).map.with_index { |string, index| Feature.new(features[index], string, @options) }
end
def features