diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-22 12:13:44 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-23 17:18:49 +0900 |
commit | 50a03035ee79947a8327fec4f4de121c5a6b6eb5 (patch) | |
tree | d5b32253e5e0f7d74952da02a1c27f2a2974009c /lib/rubygems/commands/install_command.rb | |
parent | 2e3cd1dc3e30f4725b18032b85a36f208c9528bc (diff) |
util/rubocop -A --only Lint/NonLocalExitFromIterator
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7582
Diffstat (limited to 'lib/rubygems/commands/install_command.rb')
-rw-r--r-- | lib/rubygems/commands/install_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index c04c01f258..9428085c74 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -262,7 +262,7 @@ You can use `i` command instead of `install`. return unless errors errors.each do |x| - return unless Gem::SourceFetchProblem === x + next unless Gem::SourceFetchProblem === x require_relative "../uri" msg = "Unable to pull data from '#{Gem::Uri.redact(x.source.uri)}': #{x.error.message}" |