From c3a986690addc6222ca1896eece96e757e333868 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Wed, 15 May 2013 16:11:24 +0900 Subject: Remove unnecessary chdir to improve concurrency --- lib/bundler/source/path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 27f098a469..bcf35cc21e 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -189,7 +189,7 @@ module Bundler Bundler.ui.warn "The validation message from Rubygems was:\n #{e.message}" ensure if gem_dir && gem_file - SharedHelpers.chdir(gem_dir){ FileUtils.rm_rf(gem_file) if File.exist?(gem_file) } + FileUtils.rm_rf(gem_dir.join gem_file) end end -- cgit v1.2.1