mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +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:
parent
b6604ec751
commit
f077a0a480
@ -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'
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user