[rubygems/rubygems] Remove unnecessary rescue

https://github.com/rubygems/rubygems/commit/c0b549f943
This commit is contained in:
David Rodríguez 2023-10-25 21:30:43 +02:00 committed by Hiroshi SHIBATA
parent ca7444cc44
commit 2d719cd146
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -350,11 +350,6 @@ class Gem::Installer
run_post_install_hooks
spec
# TODO: This rescue is in the wrong place. What is raising this exception?
# move this rescue to around the code that actually might raise it.
rescue Zlib::GzipFile::Error
raise Gem::InstallError, "gzip error installing #{gem}"
end
def run_pre_install_hooks # :nodoc: