Avoid explicit control flow
This commit is contained in:
parent
fca020cde1
commit
e04e898d5c
@ -196,12 +196,13 @@ class FormulaInstaller
|
|||||||
conflicts = formula.conflicts.select do |c|
|
conflicts = formula.conflicts.select do |c|
|
||||||
begin
|
begin
|
||||||
f = Formulary.factory(c.name)
|
f = Formulary.factory(c.name)
|
||||||
f.linked_keg.exist? && f.opt_prefix.exist?
|
|
||||||
rescue TapFormulaUnavailableError
|
rescue TapFormulaUnavailableError
|
||||||
# If the formula name is in full-qualified name. Let's silently
|
# If the formula name is in full-qualified name. Let's silently
|
||||||
# ignore it as we don't care about things used in taps that aren't
|
# ignore it as we don't care about things used in taps that aren't
|
||||||
# currently tapped.
|
# currently tapped.
|
||||||
next
|
false
|
||||||
|
else
|
||||||
|
f.linked_keg.exist? && f.opt_prefix.exist?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user