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