summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:54:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:54:48 +0000
commitf077a0a480fedc2ef55b7da6ab455636a7905b9a (patch)
treed718fc8c695206b334bf48e523eed252a1c2fedb /app/models
parentb6604ec7510e295036920ccc30d28c0061f0885c (diff)
downloadredmine-f077a0a480fedc2ef55b7da6ab455636a7905b9a.tar.gz
redmine-f077a0a480fedc2ef55b7da6ab455636a7905b9a.zip
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
Diffstat (limited to 'app/models')
-rw-r--r--app/models/wiki_page.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index ede750e80..422034243 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.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]