]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/CaseIndentation in lib/redmine/helpers/gantt.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Oct 2019 16:45:54 +0000 (16:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Oct 2019 16:45:54 +0000 (16:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18727 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/helpers/gantt.rb

index 30201274a90f7f4a3e71ca7d2b3a079848192133..ade1efe0b749fa3de48a215f84a2a50d59ce1268 100644 (file)
@@ -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:
index ef9475cea35f134e4262281a8c5ad5871bd148b9..2258faf9c874854cd4f01305ad04551b15481c16 100644 (file)
@@ -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