summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers/gantt.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:55:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:55:11 +0000
commit05ef7738975647b061000c78b62097f104f8e464 (patch)
tree24486bb85a448d5ba6572e2bf5337b3a75b8d10a /lib/redmine/helpers/gantt.rb
parent5ac2471a7af987a430cce8eae36ada30524e6320 (diff)
downloadredmine-05ef7738975647b061000c78b62097f104f8e464.tar.gz
redmine-05ef7738975647b061000c78b62097f104f8e464.zip
code cleanup: rubocop: fix Style/ParenthesesAroundCondition in lib/redmine/helpers/gantt.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18837 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/helpers/gantt.rb')
-rw-r--r--lib/redmine/helpers/gantt.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index db0676ba7..1876e8dca 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -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