diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 13:43:40 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 13:43:40 +0000 |
commit | 8d429120ecd8fe21dc7e50848952cb478c37f36c (patch) | |
tree | 3a5e24525cde6cb26acbfe1f5a03e9e7de0bc817 /app | |
parent | 252450b44cf34ae861e0bbc55712a9941e223aa2 (diff) | |
download | redmine-8d429120ecd8fe21dc7e50848952cb478c37f36c.tar.gz redmine-8d429120ecd8fe21dc7e50848952cb478c37f36c.zip |
code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/helpers/application_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18822 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 121de247f..02c876ee1 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -67,7 +67,7 @@ module ApplicationHelper def link_to_group(group, options={}) if group.is_a?(Group) name = h(group.name) - if (User.current.admin?) + if User.current.admin? only_path = options[:only_path].nil? ? true : options[:only_path] link_to name, edit_group_path(group, :only_path => only_path) else @@ -377,12 +377,12 @@ module ApplicationHelper projects.sort_by(&:lft).each do |project| # set the project environment to please macros. @project = project - if (ancestors.empty? || project.is_descendant_of?(ancestors.last)) + if ancestors.empty? || project.is_descendant_of?(ancestors.last) s << "<ul class='projects #{ ancestors.empty? ? 'root' : nil}'>\n" else ancestors.pop s << "</li>" - while (ancestors.any? && !project.is_descendant_of?(ancestors.last)) + while ancestors.any? && !project.is_descendant_of?(ancestors.last) ancestors.pop s << "</ul></li>\n" end |