mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-07 16:11:30 +00:00
code cleanup: rubocop: fix Layout/CaseIndentation in lib/redmine/helpers/gantt.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18727 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5d77985f14
commit
2140c49042
@ -69,7 +69,6 @@ Layout/CaseIndentation:
|
||||
Exclude:
|
||||
- 'app/models/issue_query.rb'
|
||||
- 'config/initializers/10-patches.rb'
|
||||
- 'lib/redmine/helpers/gantt.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Layout/ClosingHeredocIndentation:
|
||||
|
||||
@ -820,8 +820,8 @@ module Redmine
|
||||
output = +''
|
||||
data_options = {}
|
||||
data_options[:collapse_expand] = "#{object.class}-#{object.id}".downcase if object
|
||||
|
||||
css = "task " + case object
|
||||
css = "task " +
|
||||
case object
|
||||
when Project
|
||||
"project"
|
||||
when Version
|
||||
@ -831,7 +831,6 @@ module Redmine
|
||||
else
|
||||
""
|
||||
end
|
||||
|
||||
# Renders the task bar, with progress and late
|
||||
if coords[:bar_start] && coords[:bar_end]
|
||||
width = coords[:bar_end] - coords[:bar_start] - 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user