Simplify conditional
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
1d295ff3bc
commit
c2725aa048
@ -96,8 +96,7 @@ module Homebrew extend self
|
|||||||
Homebrew.dump_options_for_formula f
|
Homebrew.dump_options_for_formula f
|
||||||
end
|
end
|
||||||
|
|
||||||
the_caveats = (f.caveats || "").strip
|
unless f.caveats.to_s.strip.empty?
|
||||||
unless the_caveats.empty?
|
|
||||||
ohai "Caveats"
|
ohai "Caveats"
|
||||||
puts f.caveats
|
puts f.caveats
|
||||||
end
|
end
|
||||||
|
|||||||
@ -141,8 +141,7 @@ class FormulaInstaller
|
|||||||
end
|
end
|
||||||
|
|
||||||
def caveats
|
def caveats
|
||||||
the_caveats = (f.caveats || "").strip
|
unless f.caveats.to_s.strip.empty?
|
||||||
unless the_caveats.empty?
|
|
||||||
ohai "Caveats", f.caveats
|
ohai "Caveats", f.caveats
|
||||||
@show_summary_heading = true
|
@show_summary_heading = true
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user