audit_file: fix condition

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Alexander Bayandin 2023-09-04 14:35:59 +01:00 committed by GitHub
parent de8eb35b73
commit b7cb8356c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ module Homebrew
end
end
return if !formula.core_formula? && formula.path == formula.tap.new_formula_path(formula.name)
return if !formula.core_formula? || formula.path == formula.tap.new_formula_path(formula.name)
problem <<~EOS
Formula is in wrong path: