mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
b595d3cf0f
This commit is contained in:
parent
a532e9dc37
commit
72d09a568f
16 changed files with 148 additions and 188 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
|
||||
source.download full_spec, path
|
||||
rescue exception
|
||||
end
|
||||
return path if path
|
||||
raise exception if exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue