aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-26 22:26:13 -0500
committerJack Nagel2014-06-26 22:26:13 -0500
commit4f6a844a7bab984fb660bdabf26da8c712467aab (patch)
tree5e759ffe00f28057a78c7901f4aa2a009bb5ee10 /Library
parentee2240bc661c6d9e49c63bbdd8d1e92b7d630b43 (diff)
downloadhomebrew-4f6a844a7bab984fb660bdabf26da8c712467aab.tar.bz2
Simplify NoSuchKegError condition
dirs will be empty if the rack directory does not exist.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index c241d1fe1..7da130001 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -21,7 +21,7 @@ module HomebrewArgvExtension
rack = HOMEBREW_CELLAR/canonical_name
dirs = rack.directory? ? rack.subdirs : []
- raise NoSuchKegError.new(rack.basename.to_s) if not rack.directory? or dirs.empty?
+ raise NoSuchKegError.new(rack.basename.to_s) if dirs.empty?
linked_keg_ref = HOMEBREW_REPOSITORY/"Library/LinkedKegs"/name
opt_prefix = HOMEBREW_PREFIX/"opt"/name