From 15a4b7d7693891831cd956def7108481aa86ddb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 5 May 2020 11:49:35 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unnecessary code This list of exceptions is no longer rescued since 1f03275ff3faa1c808d3a3b89ef5db62dc2eb2ba. https://github.com/rubygems/rubygems/commit/6e71e7be67 --- lib/rubygems/indexer.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb index 75bd824c9e..262836a7b3 100644 --- a/lib/rubygems/indexer.rb +++ b/lib/rubygems/indexer.rb @@ -4,14 +4,6 @@ require 'rubygems/package' require 'time' 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.