aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-16 14:10:30 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-17 18:50:55 +0900
commit72d09a568f9f50ce7c41ef2999d272f77a207a8c (patch)
treeaeb539d5e35ea0ad2ee7880f30d5095afdd7bf34 /lib/rubygems.rb
parenta532e9dc37bb7ff2fb36966327f71a74163d9616 (diff)
downloadruby-72d09a568f9f50ce7c41ef2999d272f77a207a8c.tar.gz
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
https://github.com/rubygems/rubygems/commit/b595d3cf0f
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index d1d40429e7..db9c73c248 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1090,13 +1090,11 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
require "bundler"
begin
Gem::DefaultUserInteraction.use_ui(ui) do
- begin
- Bundler.ui.silence do
- @gemdeps = Bundler.setup
- end
- ensure
- Gem::DefaultUserInteraction.ui.close
+ Bundler.ui.silence do
+ @gemdeps = Bundler.setup
end
+ ensure
+ Gem::DefaultUserInteraction.ui.close
end
rescue Bundler::BundlerError => e
warn e.message