mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
Don't use 'obj == nil'
This commit is contained in:
1 parent
9c0dae1350
commit
be38b92d68
2 files changed
+2
-2
No files matched your search
@@ -125,7 +125,7 @@ class FormulaCreator
|
||||
|
||||
<% if mode == :cmake %>
|
||||
depends_on 'cmake' => :build
|
||||
<% elsif mode == nil %>
|
||||
<% elsif mode.nil? %>
|
||||
# depends_on 'cmake' => :build
|
||||
<% end %>
|
||||
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')
|
||||
s = f.read
|
||||
|
||||
if before == nil and after == nil
|
||||
if before.nil? && after.nil?
|
||||
s.extend(StringInreplaceExtension)
|
||||
yield s
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user