Fix false positives in audit

There was a typo that made it so that all libraries were being included
in `flat_namespace_files`.
This commit is contained in:
Carlo Cabrera 2021-10-12 15:35:46 +08:00
parent 7223f8ef74
commit 4fbe0a2b1b
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -98,9 +98,9 @@ module FormulaCellarChecks
macho = MachO.open(file)
if file.universal?
macho.machos.map(&:header).all? { |h| h.flag? :MH_TWO_LEVEL }
macho.machos.map(&:header).all? { |h| h.flag? :MH_TWOLEVEL }
else
macho.header.flag?(:MH_TWO_LEVEL)
macho.header.flag?(:MH_TWOLEVEL)
end
end
return if flat_namespace_files.empty?