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 = ""
if mismatches.any?
if mismatches.present?
s += <<~EOS
Binaries built for an incompatible architecture were installed into #{formula}'s prefix.
The offending files are:
@ -347,7 +347,7 @@ module FormulaCellarChecks
EOS
end
if compatible_universal_binaries.any? && !universal_binaries_expected
if compatible_universal_binaries.present? && !universal_binaries_expected
s += <<~EOS
Unexpected universal binaries were found.
The offending files are: