diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 30201274a..ade1efe0b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index ef9475cea..2258faf9c 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -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