aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-06-26 22:26:13 -0500
committerJack Nagel2014-06-26 22:26:13 -0500
commitdce7b04ea572fdd4e19b8d611625a979b48a74ce (patch)
tree64330fbc5200cccdf53045f57b9ba0cad23abd4a /Library/Homebrew
parentde81350b426c697ae3d515fc49d5d085e0ebeb60 (diff)
downloadbrew-dce7b04ea572fdd4e19b8d611625a979b48a74ce.tar.bz2
Simplify NoSuchKegError condition
dirs will be empty if the rack directory does not exist.
Diffstat (limited to 'Library/Homebrew')
-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