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:
|
Exclude:
|
||||||
- 'app/models/project.rb'
|
- 'app/models/project.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/SpaceInsideRangeLiteral:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/repository/cvs.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: space, no_space
|
# SupportedStyles: space, no_space
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ class Repository::Cvs < Repository
|
|||||||
cmt = Changeset.normalize_comments(revision.message, repo_log_encoding)
|
cmt = Changeset.normalize_comments(revision.message, repo_log_encoding)
|
||||||
author_utf8 = Changeset.to_utf8(revision.author, repo_log_encoding)
|
author_utf8 = Changeset.to_utf8(revision.author, repo_log_encoding)
|
||||||
cs = changesets.where(
|
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,
|
:committer => author_utf8,
|
||||||
:comments => cmt
|
:comments => cmt
|
||||||
).first
|
).first
|
||||||
|
|||||||
Reference in New Issue
Block a user