Fix LuaCheck error

"frontend/ui/menusorter.lua:110:13: value assigned to variable 'sub_menu_content' is unused"

Kind of the point, I'm assigning it nil after all. This way it probably shouldn't complain.
pull/2724/head
Frans de Jonge 7 years ago committed by Qingping Hou
parent 3982170886
commit da48a54727

@ -107,7 +107,7 @@ function MenuSorter:sort(item_table, order)
sub_menu_position.text = sub_menu_content.text
sub_menu_position.sub_item_table = sub_menu_content
-- remove reference from top level output
sub_menu_content = nil
menu_table[sub_menu] = nil
-- remove reference from input so it won't show up as orphaned
item_table[sub_menu] = nil
end

Loading…
Cancel
Save