summaryrefslogtreecommitdiff
path: root/lib/rubygems/resolver
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 14:10:30 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit72d09a568f9f50ce7c41ef2999d272f77a207a8c (patch)
treeaeb539d5e35ea0ad2ee7880f30d5095afdd7bf34 /lib/rubygems/resolver
parenta532e9dc37bb7ff2fb36966327f71a74163d9616 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
https://github.com/rubygems/rubygems/commit/b595d3cf0f
Diffstat (limited to 'lib/rubygems/resolver')
-rw-r--r--lib/rubygems/resolver/activation_request.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rubygems/resolver/activation_request.rb b/lib/rubygems/resolver/activation_request.rb
index 27877e0f4b..17625aea8f 100644
--- a/lib/rubygems/resolver/activation_request.rb
+++ b/lib/rubygems/resolver/activation_request.rb
@@ -58,10 +58,8 @@ class Gem::Resolver::ActivationRequest
if @spec.respond_to? :sources
exception = nil
path = @spec.sources.find do |source|
- begin
- source.download full_spec, path
- rescue exception
- end
+ source.download full_spec, path
+ rescue exception
end
return path if path
raise exception if exception