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:
parent
7223f8ef74
commit
4fbe0a2b1b
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user