Skip to content

Commit 3ff3ad6

Browse files
authored
Merge pull request #18717 from bevanjkay/audit-exceptions
tap: allow an array of values for an audit exception
2 parents 5e5d02a + ffd9d68 commit 3ff3ad6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Library/Homebrew/tap.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,8 @@ def audit_exception(list, formula_or_cask, value = nil)
11161116
return false unless list.include? formula_or_cask
11171117
return list[formula_or_cask] if value.blank?
11181118

1119+
return list[formula_or_cask].include?(value) if list[formula_or_cask].is_a?(Array)
1120+
11191121
list[formula_or_cask] == value
11201122
end
11211123
end

0 commit comments

Comments
 (0)