Skip to content

Commit

Permalink
Merge pull request #18717 from bevanjkay/audit-exceptions
Browse files Browse the repository at this point in the history
tap: allow an array of values for an audit exception
  • Loading branch information
MikeMcQuaid authored Nov 6, 2024
2 parents 5e5d02a + ffd9d68 commit 3ff3ad6
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 3ff3ad6

Please sign in to comment.