From 53f784178ac4eb4c854985e7855be2b9d66dfe8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 6 Sep 2024 12:59:38 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unreachable code Nothing is actually raising this at the moment. https://github.com/rubygems/rubygems/commit/3b824ca7a6 --- lib/rubygems/commands/install_command.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index 2091634a29..2888b6c55a 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -224,10 +224,6 @@ You can use `i` command instead of `install`. rescue Gem::InstallError => e alert_error "Error installing #{gem_name}:\n\t#{e.message}" exit_code |= 1 - rescue Gem::GemNotFoundException => e - show_lookup_failure e.name, e.version, e.errors, suppress_suggestions - - exit_code |= 2 rescue Gem::UnsatisfiableDependencyError => e show_lookup_failure e.name, e.version, e.errors, suppress_suggestions, "'#{gem_name}' (#{gem_version})"