linkage_checker.rb: replace conditional assignment with an if-else
This commit is contained in:
parent
7080ad5ebc
commit
28227bd26b
@ -81,7 +81,11 @@ class LinkageChecker
|
|||||||
def broken_dylibs_with_expectations
|
def broken_dylibs_with_expectations
|
||||||
output = {}
|
output = {}
|
||||||
@broken_dylibs.each do |lib|
|
@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
|
end
|
||||||
output
|
output
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user