Skip to content

Commit

Permalink
tap: allow an array of values for an audit exception
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed Nov 5, 2024
1 parent c66b91d commit 0715ff8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,7 @@ def audit_exception(list, formula_or_cask, value = nil)
return false unless list.include? formula_or_cask
return list[formula_or_cask] if value.blank?

list[formula_or_cask].include? value if list[formula_or_cask].is_a? Array
list[formula_or_cask] == value
end
end
Expand Down

0 comments on commit 0715ff8

Please sign in to comment.