Permalink
Browse files

Merge pull request #2453 from tenderlove/refactor

move method call outside the conditional
  • Loading branch information...
2 parents e97ace7 + f318a80 commit afc5660e0cc6fba638d93ffac70b986ba1894fb6 @hone hone committed Apr 24, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/bundler.rb
View
3 lib/bundler.rb
@@ -347,14 +347,13 @@ def configure_gem_home_and_path
blank_home = ENV['GEM_HOME'].nil? || ENV['GEM_HOME'].empty?
if settings[:disable_shared_gems]
ENV['GEM_PATH'] = ''
- configure_gem_home
elsif blank_home || Bundler.rubygems.gem_dir != bundle_path.to_s
possibles = [Bundler.rubygems.gem_dir, Bundler.rubygems.gem_path]
paths = possibles.flatten.compact.uniq.reject { |p| p.empty? }
ENV["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
- configure_gem_home
end
+ configure_gem_home
Bundler.rubygems.refresh
bundle_path
end

0 comments on commit afc5660

Please sign in to comment.