From f9ee106468359c56e1adf6069a72a91a187de689 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Sun, 19 Jul 2020 23:59:24 -0400 Subject: [PATCH] Revert "Fix build error when using Ruby 2.8.0-dev" This reverts commit ee123f42b505f2ae91cd53db0af247bcc3e6cade. --- lib/rubocop/comment_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubocop/comment_config.rb b/lib/rubocop/comment_config.rb index 91f58591ed9..caf6a549ccc 100644 --- a/lib/rubocop/comment_config.rb +++ b/lib/rubocop/comment_config.rb @@ -107,7 +107,7 @@ def analyze_rest(analysis, line) def cop_line_ranges(analysis) return analysis.line_ranges unless analysis.start_line_number - analysis.line_ranges + [(analysis.start_line_number.to_f..Float::INFINITY)] + analysis.line_ranges + [(analysis.start_line_number..Float::INFINITY)] end def each_mentioned_cop