Browse Source

Fix rubocop "Style/CombinableLoops" offense in wiki_page.rb (#29914, #32938).

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

+ 0
- 1
.rubocop_todo.yml View File

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

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

# Cop supports --auto-correct.

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

@@ -321,9 +321,6 @@ 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