diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-22 12:13:44 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 17:18:49 +0900 |
commit | 50a03035ee79947a8327fec4f4de121c5a6b6eb5 (patch) | |
tree | d5b32253e5e0f7d74952da02a1c27f2a2974009c /lib/rubygems | |
parent | 2e3cd1dc3e30f4725b18032b85a36f208c9528bc (diff) |
util/rubocop -A --only Lint/NonLocalExitFromIterator
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7582
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/commands/install_command.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/package.rb | 2 |
2 files changed, 2 insertions, 2 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}" diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb index 6668e666ce..5c66457d2b 100644 --- a/lib/rubygems/package.rb +++ b/lib/rubygems/package.rb @@ -391,7 +391,7 @@ EOM extract_tar_gz entry, destination_dir, pattern - return # ignore further entries + break # ignore further entries end end end |