summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-05-13 08:12:09 +0000
committerGo MAEDA <maeda@farend.jp>2024-05-13 08:12:09 +0000
commit2531e194f157e687a79b9db9fd8cf104eb66a103 (patch)
tree9c884339327376438b230083aa6d2c01871fed70 /lib/redmine
parentfb9bc74dd4781adf0a79e1b05c1ccb034b3e424b (diff)
downloadredmine-2531e194f157e687a79b9db9fd8cf104eb66a103.tar.gz
redmine-2531e194f157e687a79b9db9fd8cf104eb66a103.zip
Fix RuboCop offense Style/RedundantSelfAssignment (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22827 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/menu_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/menu_manager.rb b/lib/redmine/menu_manager.rb
index 19169cfb7..5846011e2 100644
--- a/lib/redmine/menu_manager.rb
+++ b/lib/redmine/menu_manager.rb
@@ -381,7 +381,7 @@ module Redmine
# Adds a child at given position
def add_at(child, position)
- @children = @children.insert(position, child)
+ @children.insert(position, child)
child.parent = self
child
end