Skip to content

Commit

Permalink
[rubygems/rubygems] Remove unnecessary rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Nov 8, 2023
1 parent ca7444c commit 2d719cd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/rubygems/installer.rb
Expand Up @@ -350,11 +350,6 @@ def install
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:
Expand Down

0 comments on commit 2d719cd

Please sign in to comment.