summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml5
-rw-r--r--lib/redmine/menu_manager.rb2
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 609cdd834..3523536c6 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1421,11 +1421,6 @@ Style/RedundantReturn:
Style/RedundantSelf:
Enabled: false
-# This cop supports unsafe autocorrection (--autocorrect-all).
-Style/RedundantSelfAssignment:
- Exclude:
- - 'lib/redmine/menu_manager.rb'
-
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantSelfAssignmentBranch:
Exclude:
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