From 2140c490421261b4f8514792d1b6c5f69453bf6d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 17 Oct 2019 16:45:54 +0000 Subject: [PATCH] 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 --- .rubocop_todo.yml | 1 - lib/redmine/helpers/gantt.rb | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) 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