summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-06-14 02:36:58 +0000
committerGo MAEDA <maeda@farend.jp>2022-06-14 02:36:58 +0000
commitab5f93ae49052e4fb95ceaf23cd3e14597608405 (patch)
treeac4c2dc1c63bcfa432c3fa44f6b16166ddb19db2 /lib
parentd4be06edf5167ae1dff39983d527154cb87fbafe (diff)
downloadredmine-ab5f93ae49052e4fb95ceaf23cd3e14597608405.tar.gz
redmine-ab5f93ae49052e4fb95ceaf23cd3e14597608405.zip
Fix RuboCop offense Style/RedundantCondition in lib/redmine/menu_manager.rb (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21630 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/menu_manager.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/redmine/menu_manager.rb b/lib/redmine/menu_manager.rb
index 0ff2bfd71..6b5ca6e8e 100644
--- a/lib/redmine/menu_manager.rb
+++ b/lib/redmine/menu_manager.rb
@@ -286,11 +286,7 @@ module Redmine
if options[:parent]
subtree = self.find(options[:parent])
- if subtree
- target_root = subtree
- else
- target_root = @menu_items.root
- end
+ target_root = subtree || @menu_items.root
else
target_root = @menu_items.root