summaryrefslogtreecommitdiff
path: root/lib/rubygems/resolver/activation_request.rb
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 ()
treeaeb539d5e35ea0ad2ee7880f30d5095afdd7bf34 /lib/rubygems/resolver/activation_request.rb
parenta532e9dc37bb7ff2fb36966327f71a74163d9616 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
https://.com/rubygems/rubygems/commit/b595d3cf0f
-rw-r--r--lib/rubygems/resolver/activation_request.rb6
1 files changed, 2 insertions, 4 deletions
@@ -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
end
return path if path
raise exception if exception