1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

code cleanup: rubocop: fix Layout/ElseAlignment in app/models/issue_priority.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18669 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-14 18:11:44 +00:00
parent 799a7091c5
commit ab3a1e01a7
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,6 @@ Layout/BlockEndNewline:
# SupportedStyles: case, end
Layout/CaseIndentation:
Exclude:
- 'app/models/issue_priority.rb'
- 'app/models/issue_query.rb'
- 'config/initializers/10-patches.rb'
- 'lib/redmine/helpers/gantt.rb'

View File

@ -54,7 +54,8 @@ class IssuePriority < Enumeration
if priorities.any?
default = priorities.detect(&:is_default?) || priorities[(priorities.size - 1) / 2]
priorities.each_with_index do |priority, index|
name = case
name =
case
when priority.position == default.position
"default"
when priority.position < default.position