[rubygems/rubygems] util/rubocop -A --only Style/EmptyElse
https://github.com/rubygems/rubygems/commit/04227104ac
This commit is contained in:
parent
4ab23df2c4
commit
f86296fa0a
@ -180,8 +180,6 @@ class Gem::BasicSpecification
|
|||||||
end
|
end
|
||||||
end ? fullpath : nil
|
end ? fullpath : nil
|
||||||
end
|
end
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -56,8 +56,6 @@ class Gem::Source
|
|||||||
return 1 unless @uri.to_s == other.uri.to_s
|
return 1 unless @uri.to_s == other.uri.to_s
|
||||||
|
|
||||||
0
|
0
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -70,8 +70,6 @@ class Gem::Source::Git < Gem::Source
|
|||||||
-1
|
-1
|
||||||
when Gem::Source then
|
when Gem::Source then
|
||||||
1
|
1
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -20,8 +20,6 @@ class Gem::Source::Installed < Gem::Source
|
|||||||
0
|
0
|
||||||
when Gem::Source then
|
when Gem::Source then
|
||||||
1
|
1
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -23,8 +23,6 @@ class Gem::Source::Local < Gem::Source
|
|||||||
0
|
0
|
||||||
when Gem::Source then
|
when Gem::Source then
|
||||||
1
|
1
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -24,8 +24,6 @@ class Gem::Source::Lock < Gem::Source
|
|||||||
@wrapped <=> other.wrapped
|
@wrapped <=> other.wrapped
|
||||||
when Gem::Source then
|
when Gem::Source then
|
||||||
1
|
1
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@ class Gem::Source::Vendor < Gem::Source::Installed
|
|||||||
0
|
0
|
||||||
when Gem::Source then
|
when Gem::Source then
|
||||||
1
|
1
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -270,7 +270,6 @@ class Gem::StreamUI
|
|||||||
when /^y/i then true
|
when /^y/i then true
|
||||||
when /^n/i then false
|
when /^n/i then false
|
||||||
when /^$/ then default
|
when /^$/ then default
|
||||||
else nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user