Use #present? instead of #any?
This commit is contained in:
parent
663aee0a67
commit
699051b3c3
@ -339,7 +339,7 @@ module FormulaCellarChecks
|
|||||||
|
|
||||||
s = ""
|
s = ""
|
||||||
|
|
||||||
if mismatches.any?
|
if mismatches.present?
|
||||||
s += <<~EOS
|
s += <<~EOS
|
||||||
Binaries built for an incompatible architecture were installed into #{formula}'s prefix.
|
Binaries built for an incompatible architecture were installed into #{formula}'s prefix.
|
||||||
The offending files are:
|
The offending files are:
|
||||||
@ -347,7 +347,7 @@ module FormulaCellarChecks
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
if compatible_universal_binaries.any? && !universal_binaries_expected
|
if compatible_universal_binaries.present? && !universal_binaries_expected
|
||||||
s += <<~EOS
|
s += <<~EOS
|
||||||
Unexpected universal binaries were found.
|
Unexpected universal binaries were found.
|
||||||
The offending files are:
|
The offending files are:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user