[rubygems/rubygems] util/rubocop -A --only Style/UnlessElse

184c03270c
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:53:44 +09:00
parent 4868cfcf1d
commit f4b073ef7a
5 changed files with 31 additions and 31 deletions

View file

@ -47,14 +47,14 @@ class Gem::Commands::CheckCommand < Gem::Command
end
Gem::Validator.new.alien(gems).sort.each do |key, val|
unless val.empty?
if val.empty?
say "#{key} is error-free" if Gem.configuration.verbose
else
say "#{key} has #{val.size} problems"
val.each do |error_entry|
say " #{error_entry.path}:"
say " #{error_entry.problem}"
end
else
say "#{key} is error-free" if Gem.configuration.verbose
end
say
end