1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Fix RuboCop offense Style/RedundantSelfAssignment (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22827 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-05-13 08:12:09 +00:00
parent fb9bc74dd4
commit 2531e194f1
2 changed files with 1 additions and 6 deletions

View File

@ -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:

View File

@ -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