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:
parent
fb9bc74dd4
commit
2531e194f1
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user