Browse Source

Revert changes made in r21251 due to a test fail (#29914, #32938).

git-svn-id: http://svn.redmine.org/redmine/trunk@21254 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.0.0
Marius Balteanu 2 years ago
parent
commit
fe5c3f81de
2 changed files with 4 additions and 0 deletions
  1. 1
    0
      .rubocop_todo.yml
  2. 3
    0
      app/models/wiki_annotate.rb

+ 1
- 0
.rubocop_todo.yml View File

@@ -1163,6 +1163,7 @@ Style/ColonMethodCall:

Style/CombinableLoops:
Exclude:
- 'app/models/wiki_annotate.rb'
- 'lib/redmine/default_data/loader.rb'

# Cop supports --auto-correct.

+ 3
- 0
app/models/wiki_annotate.rb View File

@@ -37,6 +37,9 @@ class WikiAnnotate
@lines[positions[line]][1] = current.author
end
end
end
d.each_slice(3) do |s|
sign, line = s[0], s[1]
if sign == '-'
positions.insert(line, -1)
else

Loading…
Cancel
Save