diff options
| author | Jack Nagel | 2013-06-26 18:47:00 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-26 18:47:00 -0500 |
| commit | cf5c97bbcb6a536100651edea790b088ad4c643f (patch) | |
| tree | 38a1576e9057a57037ef7895333c94a8d1de6090 /Library/Homebrew/utils.rb | |
| parent | 3fe73467609fc20ce364aabcc309788c14f0f0c7 (diff) | |
| download | brew-cf5c97bbcb6a536100651edea790b088ad4c643f.tar.bz2 | |
Don't use 'obj == nil'
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
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 |
