Skip to content

Commit

Permalink
Remove the flatten on actors to prevent delegator warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfvanderwalt committed Sep 11, 2024
1 parent 4b911dd commit 9adf36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flipper/feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9adf36d

Please sign in to comment.