diff options
author | Kohei Suzuki <kohei-suzuki@cookpad.com> | 2013-05-15 16:11:24 +0900 |
---|---|---|
committer | Kohei Suzuki <kohei-suzuki@cookpad.com> | 2013-05-23 13:32:40 +0900 |
commit | c3a986690addc6222ca1896eece96e757e333868 (patch) | |
tree | 4dd29e574a3a1376ab9100c8519a463e032529af | |
parent | 47f3670a21d1fcd2e30fb5ee3cc716a1836919fa (diff) | |
download | bundler-c3a986690addc6222ca1896eece96e757e333868.tar.gz |
Remove unnecessary chdir to improve concurrency
-rw-r--r-- | lib/bundler/source/path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |