mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove unnecessary code
This list of exceptions is no longer rescued since 1f03275ff3faa1c808d3a3b89ef5db62dc2eb2ba. https://github.com/rubygems/rubygems/commit/6e71e7be67
This commit is contained in:
parent
c832e3faa4
commit
15a4b7d769
Notes:
git
2020-05-08 14:14:08 +09:00
1 changed files with 0 additions and 8 deletions
|
@ -4,14 +4,6 @@ require 'rubygems/package'
|
||||||
require 'time'
|
require 'time'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
|
|
||||||
rescue_exceptions = [LoadError]
|
|
||||||
begin
|
|
||||||
require 'bundler/errors'
|
|
||||||
rescue LoadError # this rubygems + old ruby
|
|
||||||
else # this rubygems + ruby trunk with bundler
|
|
||||||
rescue_exceptions << Bundler::GemfileNotFound
|
|
||||||
end
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Top level class for building the gem repository index.
|
# Top level class for building the gem repository index.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue