[rubygems/rubygems] util/rubocop -A --only Style/IfUnlessModifierOfIfUnless
https://github.com/rubygems/rubygems/commit/97e0af2518
This commit is contained in:
parent
ee7475734f
commit
be4cc74e26
@ -185,7 +185,9 @@ command to remove old versions.
|
||||
system Gem.ruby, "--disable-gems", "setup.rb", *args
|
||||
end
|
||||
|
||||
say "RubyGems system software updated" if installed unless options[:silent]
|
||||
unless options[:silent]
|
||||
say "RubyGems system software updated" if installed
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1136,7 +1136,9 @@ class Gem::Specification < Gem::BasicSpecification
|
||||
result = {}
|
||||
|
||||
specs.reverse_each do |spec|
|
||||
next if spec.version.prerelease? unless prerelease
|
||||
unless prerelease
|
||||
next if spec.version.prerelease?
|
||||
end
|
||||
|
||||
result[spec.name] = spec
|
||||
end
|
||||
|
@ -62,7 +62,9 @@ class Gem::Validator
|
||||
errors = Hash.new {|h,k| h[k] = {} }
|
||||
|
||||
Gem::Specification.each do |spec|
|
||||
next unless gems.include? spec.name unless gems.empty?
|
||||
unless gems.empty?
|
||||
next unless gems.include? spec.name
|
||||
end
|
||||
next if spec.default_gem?
|
||||
|
||||
gem_name = spec.file_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user