aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorUladzislau Shablinski2017-02-25 19:15:08 +0300
committerUladzislau Shablinski2017-02-26 13:36:20 +0300
commitbe8a0b329987c3985d55a76475279277fc02a6c3 (patch)
treecde72d89eb03caca9d8ea24b9ca2cc1805e2282d /Library
parent93724c0645f59ccdb4b4bf34f701957bacb5e45a (diff)
downloadbrew-be8a0b329987c3985d55a76475279277fc02a6c3.tar.bz2
ARGV.include? should return boolean
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 767ddc6e3..775585b39 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -131,9 +131,8 @@ module HomebrewArgvExtension
end
end
- # self documenting perhaps?
def include?(arg)
- @n=index arg
+ !(@n = index(arg)).nil?
end
def next