diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index e8575cbf3b..79ce9ef31b 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -155,7 +155,7 @@ module Homebrew end end - if audit_formulae.empty? && audit_casks.empty? + if audit_formulae.empty? && audit_casks.empty? && !args.tap ofail "No matching formulae or casks to audit!" return end