1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-06 00:53:24 +00:00

code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/wiki_page.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18835 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-22 15:54:48 +00:00
parent b6604ec751
commit f077a0a480
2 changed files with 1 additions and 2 deletions

View File

@ -1144,7 +1144,6 @@ Style/ParallelAssignment:
Style/ParenthesesAroundCondition:
Exclude:
- 'app/models/repository/subversion.rb'
- 'app/models/wiki_page.rb'
- 'lib/diff.rb'
- 'lib/redmine/helpers/gantt.rb'
- 'lib/redmine/scm/adapters/cvs_adapter.rb'

View File

@ -304,7 +304,7 @@ class WikiAnnotate
@lines = current_lines.collect {|t| [nil, nil, t]}
positions = []
current_lines.size.times {|i| positions << i}
while (current.previous)
while current.previous
d = current.previous.text.split(/\r?\n/).diff(current.text.split(/\r?\n/)).diffs.flatten
d.each_slice(3) do |s|
sign, line = s[0], s[1]