make code faster and cleaner in file.lua and winutils.lua

This commit is contained in:
kyazdani42
2020-02-19 19:43:03 +01:00
parent bb38758960
commit 3945771fb5
4 changed files with 44 additions and 34 deletions

View File

@@ -105,7 +105,7 @@ local function edit_file(edit_type)
else
edit_add(node.path)
end
elseif edit_type == 'delete' then
elseif edit_type == 'remove' then
edit_remove(node.name, node.path, node.dir)
elseif edit_type == 'rename' then
edit_rename(node.name, node.path, node.dir)