Explorar el Código

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
tags/5.1.0
Go MAEDA hace 1 año
padre
commit
ab5f93ae49
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1
    5
      lib/redmine/menu_manager.rb

+ 1
- 5
lib/redmine/menu_manager.rb Ver fichero

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

Cargando…
Cancelar
Guardar