Просмотр исходного кода

code cleanup: rubocop: fix Style/UnlessElse in lib/redmine/wiki_formatting/textile/redcloth3.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18737 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 лет назад
Родитель
Сommit
30964255f1
2 измененных файлов: 1 добавлений и 3 удалений
  1. 0
    1
      .rubocop_todo.yml
  2. 1
    2
      lib/redmine/wiki_formatting/textile/redcloth3.rb

+ 0
- 1
.rubocop_todo.yml Просмотреть файл

@@ -1408,7 +1408,6 @@ Style/UnlessElse:
- 'app/controllers/trackers_controller.rb'
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
- 'lib/redmine/unified_diff.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'

# Cop supports --auto-correct.
Style/UnneededCondition:

+ 1
- 2
lib/redmine/wiki_formatting/textile/redcloth3.rb Просмотреть файл

@@ -575,7 +575,7 @@ class RedCloth3 < String
lines[line_id - 1] << '</li>'
end
end
unless depth.last == tl
if depth.last != tl
depth << tl
atts = pba( atts )
atts = shelve( atts ) if atts
@@ -584,7 +584,6 @@ class RedCloth3 < String
lines[line_id] = +"\t\t<li>#{content}"
end
last_line = line_id

else
last_line = line_id
end

Загрузка…
Отмена
Сохранить