]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Style/ParenthesesAroundCondition in lib/redmine/helpers...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 15:55:11 +0000 (15:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 15:55:11 +0000 (15:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18837 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index c9b92159065373e8cbdbed031f9ee95c37654865..48448284f77f6b86342bda87ed29b69aad6ef7f9 100644 (file)
@@ -1144,7 +1144,6 @@ Style/ParallelAssignment:
 Style/ParenthesesAroundCondition:
   Exclude:
     - 'app/models/repository/subversion.rb'
-    - 'lib/redmine/helpers/gantt.rb'
     - 'lib/redmine/scm/adapters/cvs_adapter.rb'
     - 'lib/redmine/scm/adapters/git_adapter.rb'
 
index db0676ba7e7633974eb305465e2b52b54b941d4c..1876e8dcaecbd2615ebdde44caf17e9bb713f106 100644 (file)
@@ -71,8 +71,9 @@ module Redmine
         months = (options[:months] || User.current.pref[:gantt_months]).to_i
         @months = (months > 0 && months < Setting.gantt_months_limit.to_i + 1) ? months : 6
         # Save gantt parameters as user preference (zoom and months count)
-        if (User.current.logged? && (@zoom != User.current.pref[:gantt_zoom] ||
-              @months != User.current.pref[:gantt_months]))
+        if User.current.logged? &&
+             (@zoom   != User.current.pref[:gantt_zoom] ||
+              @months != User.current.pref[:gantt_months])
           User.current.pref[:gantt_zoom], User.current.pref[:gantt_months] = @zoom, @months
           User.current.preference.save
         end