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:
parent
799a7091c5
commit
ab3a1e01a7
@ -72,7 +72,6 @@ Layout/BlockEndNewline:
|
|||||||
# SupportedStyles: case, end
|
# SupportedStyles: case, end
|
||||||
Layout/CaseIndentation:
|
Layout/CaseIndentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/issue_priority.rb'
|
|
||||||
- 'app/models/issue_query.rb'
|
- 'app/models/issue_query.rb'
|
||||||
- 'config/initializers/10-patches.rb'
|
- 'config/initializers/10-patches.rb'
|
||||||
- 'lib/redmine/helpers/gantt.rb'
|
- 'lib/redmine/helpers/gantt.rb'
|
||||||
|
|||||||
@ -54,7 +54,8 @@ class IssuePriority < Enumeration
|
|||||||
if priorities.any?
|
if priorities.any?
|
||||||
default = priorities.detect(&:is_default?) || priorities[(priorities.size - 1) / 2]
|
default = priorities.detect(&:is_default?) || priorities[(priorities.size - 1) / 2]
|
||||||
priorities.each_with_index do |priority, index|
|
priorities.each_with_index do |priority, index|
|
||||||
name = case
|
name =
|
||||||
|
case
|
||||||
when priority.position == default.position
|
when priority.position == default.position
|
||||||
"default"
|
"default"
|
||||||
when priority.position < default.position
|
when priority.position < default.position
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user