linkage_checker.rb: replace conditional assignment with an if-else

This commit is contained in:
Maxim Belkin 2020-07-21 14:11:00 +00:00
parent 7080ad5ebc
commit 28227bd26b

View File

@ -81,7 +81,11 @@ class LinkageChecker
def broken_dylibs_with_expectations
output = {}
@broken_dylibs.each do |lib|
output[lib] = (unexpected_broken_libs.include? lib) ? ["unexpected"] : ["expected"]
output[lib] = if unexpected_broken_libs.include? lib
["unexpected"]
else
["expected"]
end
end
output
end