diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 10:16:17 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 17:18:49 +0900 |
commit | 2e3cd1dc3e30f4725b18032b85a36f208c9528bc (patch) | |
tree | 03b319dd2a715c27aa7ca25a892df86aa956416e /lib/rubygems/version.rb | |
parent | 19e9c4004b9d137ad48757f3f4c2d92257e6c2c4 (diff) | |
download | ruby-2e3cd1dc3e30f4725b18032b85a36f208c9528bc.tar.gz |
[rubygems/rubygems] Enabled Style/RedundantReturn cop
https://github.com/rubygems/rubygems/commit/05cc97bdf8
Diffstat (limited to 'lib/rubygems/version.rb')
-rw-r--r-- | lib/rubygems/version.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb index 3c2f6ad017..8fc4e1b327 100644 --- a/lib/rubygems/version.rb +++ b/lib/rubygems/version.rb @@ -377,7 +377,7 @@ class Gem::Version return lhs <=> rhs end - return 0 + 0 end def canonical_segments @@ -413,6 +413,6 @@ class Gem::Version string_start = _segments.index {|s| s.is_a?(String) } string_segments = segments numeric_segments = string_segments.slice!(0, string_start || string_segments.size) - return numeric_segments, string_segments + [numeric_segments, string_segments] end end |