Skip to content

Commit

Permalink
tap: tweak Ruby style for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Nov 6, 2024
1 parent b2dff27 commit ffd9d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +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?

return list[formula_or_cask].include? value if list[formula_or_cask].is_a? Array
return list[formula_or_cask].include?(value) if list[formula_or_cask].is_a?(Array)

list[formula_or_cask] == value
end
Expand Down

0 comments on commit ffd9d68

Please sign in to comment.