diff --git a/lib/flipper/feature.rb b/lib/flipper/feature.rb index f446f921..8f792062 100644 --- a/lib/flipper/feature.rb +++ b/lib/flipper/feature.rb @@ -100,7 +100,7 @@ def clear # # Returns true if enabled, false if not. def enabled?(*actors) - actors = actors.flatten.compact.map { |actor| Types::Actor.wrap(actor) } + actors = actors.compact.map { |actor| Types::Actor.wrap(actor) } actors = nil if actors.empty? # thing is left for backwards compatibility