From fb221e80691ec4bbdbea8b4e40af221839fb5d4c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 24 Sep 2019 02:34:43 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/SpaceInsideRangeLiteral in app/models/repository/cvs.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18507 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 5 ----- app/models/repository/cvs.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b4a4387c3..93d483898 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -472,11 +472,6 @@ Layout/SpaceInsidePercentLiteralDelimiters: Exclude: - 'app/models/project.rb' -# Cop supports --auto-correct. -Layout/SpaceInsideRangeLiteral: - Exclude: - - 'app/models/repository/cvs.rb' - # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index e823275e4..1ef8c2223 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -146,7 +146,7 @@ class Repository::Cvs < Repository cmt = Changeset.normalize_comments(revision.message, repo_log_encoding) author_utf8 = Changeset.to_utf8(revision.author, repo_log_encoding) cs = changesets.where( - :committed_on => tmp_time - time_delta .. tmp_time + time_delta, + :committed_on => (tmp_time - time_delta)..(tmp_time + time_delta), :committer => author_utf8, :comments => cmt ).first