[rubygems/rubygems] Avoid now unnecessary reset

https://github.com/rubygems/rubygems/commit/511c7b211b
This commit is contained in:
David Rodríguez 2024-09-02 19:12:06 +02:00 committed by git
parent 72e80c8f29
commit 155989415b

View File

@ -57,8 +57,6 @@ to the same gem path as user-installed gems.
end
def execute
gem_paths = { "GEM_HOME" => Gem.paths.home, "GEM_PATH" => Gem.paths.path.join(File::PATH_SEPARATOR), "GEM_SPEC_CACHE" => Gem.paths.spec_cache_dir }.compact
check_executable
print_command
@ -74,9 +72,6 @@ to the same gem path as user-installed gems.
end
load!
ensure
ENV.update(gem_paths) if gem_paths
Gem.clear_paths
end
private