mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 21:40:28 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user