From 3cff46c521668a67572ee1ed7ae23de2fd39fddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 27 Jan 2025 20:08:17 +0100 Subject: [PATCH] [rubygems/rubygems] Remove unnecessary error handling These gems always define their main namespace and I don't think that will ever change. https://github.com/rubygems/rubygems/commit/6663cbed53 --- lib/bundler/cli/console.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/bundler/cli/console.rb b/lib/bundler/cli/console.rb index 2ba5e69bde..a93c750b22 100644 --- a/lib/bundler/cli/console.rb +++ b/lib/bundler/cli/console.rb @@ -32,9 +32,6 @@ module Bundler "irb" => :IRB, }[name] Object.const_get(const_name) - rescue NameError - Bundler.ui.error "Could not find constant #{const_name}" - exit 1 end end end