summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-01-27 20:08:17 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-01-31 14:34:28 +0900
commit3cff46c521668a67572ee1ed7ae23de2fd39fddd (patch)
tree232f2ae09e0d454c1ec2f66cd4f7de88050f8f68 /lib
parente0f39d4cd32f1b346b8a6bac2431a4273def4c6a (diff)
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/console.rb3
1 files changed, 0 insertions, 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