aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-26 18:47:00 -0500
committerJack Nagel2013-06-26 18:47:00 -0500
commitcf5c97bbcb6a536100651edea790b088ad4c643f (patch)
tree38a1576e9057a57037ef7895333c94a8d1de6090 /Library/Homebrew/utils.rb
parent3fe73467609fc20ce364aabcc309788c14f0f0c7 (diff)
downloadbrew-cf5c97bbcb6a536100651edea790b088ad4c643f.tar.bz2
Don't use 'obj == nil'
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index e72452ee0..57760c3ec 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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