Skip to content

Commit b2dff27

Browse files
committed
tap: allow an array of values for an audit exception
1 parent c66b91d commit b2dff27

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)