Don't use 'obj == nil'
This commit is contained in:
parent
3fe7346760
commit
cf5c97bbcb
@ -125,7 +125,7 @@ class FormulaCreator
|
|||||||
|
|
||||||
<% if mode == :cmake %>
|
<% if mode == :cmake %>
|
||||||
depends_on 'cmake' => :build
|
depends_on 'cmake' => :build
|
||||||
<% elsif mode == nil %>
|
<% elsif mode.nil? %>
|
||||||
# depends_on 'cmake' => :build
|
# depends_on 'cmake' => :build
|
||||||
<% end %>
|
<% end %>
|
||||||
depends_on :x11 # if your formula requires any X11/XQuartz components
|
depends_on :x11 # if your formula requires any X11/XQuartz components
|
||||||
|
|||||||
@ -218,7 +218,7 @@ def inreplace paths, before=nil, after=nil
|
|||||||
f = File.open(path, 'r')
|
f = File.open(path, 'r')
|
||||||
s = f.read
|
s = f.read
|
||||||
|
|
||||||
if before == nil and after == nil
|
if before.nil? && after.nil?
|
||||||
s.extend(StringInreplaceExtension)
|
s.extend(StringInreplaceExtension)
|
||||||
yield s
|
yield s
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user