[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:
parent
e0f39d4cd3
commit
3cff46c521
@ -32,9 +32,6 @@ module Bundler
|
|||||||
"irb" => :IRB,
|
"irb" => :IRB,
|
||||||
}[name]
|
}[name]
|
||||||
Object.const_get(const_name)
|
Object.const_get(const_name)
|
||||||
rescue NameError
|
|
||||||
Bundler.ui.error "Could not find constant #{const_name}"
|
|
||||||
exit 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user