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 6, 2024
1 parent c66b91d commit b2dff27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,8 @@ 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?

return 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 b2dff27

Please sign in to comment.