From b6a3305f23b71872effd27f33be2b1ebc33bfbd6 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 17 Dec 2023 20:43:40 -0500 Subject: [PATCH] minor minification --- ccmsi.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ccmsi.lua b/ccmsi.lua index 7498f49..c13dee8 100644 --- a/ccmsi.lua +++ b/ccmsi.lua @@ -179,11 +179,8 @@ local function clean(manifest) if fs.isDriveRoot(val) then yellow();println("skipped mount '" .. val .. "'") elseif fs.isDir(val) then - if tree[val] ~= nil then - lgray();_clean_dir("/" .. val, tree[val]) - else - white();if ask_y_n("delete the unused directory '" .. val .. "'") then lgray();_clean_dir("/" .. val, tree[val]) end - end + if tree[val] ~= nil then lgray();_clean_dir("/" .. val, tree[val]) + else white();if ask_y_n("delete the unused directory '" .. val .. "'") then lgray();_clean_dir("/" .. val) end end if #fs.list(val) == 0 then fs.delete(val);lgray();println("deleted empty directory '" .. val .. "'") end elseif not _in_array(val, tree) and (string.find(val, ".settings") == nil) then white();if ask_y_n("delete the unused file '" .. val .. "'") then fs.delete(val);lgray();println("deleted " .. val) end