Use #present? instead of #any?

This commit is contained in:
Carlo Cabrera 2021-07-20 18:53:53 +08:00
parent 663aee0a67
commit 699051b3c3
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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: