[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
This commit is contained in:
David Rodríguez 2025-01-27 20:08:17 +01:00 committed by Hiroshi SHIBATA
parent e0f39d4cd3
commit 3cff46c521

View File

@ -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