aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
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