Skip to content

Commit 3cff46c

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Remove unnecessary error handling
These gems always define their main namespace and I don't think that will ever change. ruby/rubygems@6663cbed53
1 parent e0f39d4 commit 3cff46c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/bundler/cli/console.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ def get_constant(name)
3232
"irb" => :IRB,
3333
}[name]
3434
Object.const_get(const_name)
35-
rescue NameError
36-
Bundler.ui.error "Could not find constant #{const_name}"
37-
exit 1
3835
end
3936
end
4037
end

0 commit comments

Comments
 (0)