diff options
-rw-r--r-- | lib/rubygems/commands/which_command.rb | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,9 +1,3 @@ -###################################################################### -# This file is imported from the rubygems project. -# DO NOT make modifications in this repo. They _will_ be reverted! -# File a instead and assign it to Ryan Davis or Eric Hodel. -###################################################################### - require 'rubygems/command' class Gem::Commands::WhichCommand < Gem::Command @@ -66,7 +60,7 @@ class Gem::Commands::WhichCommand < Gem::Command dirs.each do |dir| Gem.suffixes.each do |ext| full_path = File.join dir, "#{package_name}#{ext}" - if File.exist? full_path then result << full_path return result unless options[:show_all] end |