From 617ef40a1dd28a6aed9ee96593255f2a62ab5b01 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 9 Jan 2022 03:29:10 +0100 Subject: [PATCH] Small cleanup --- src/compress.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/compress.lua b/src/compress.lua index e9a8629..fd06624 100644 --- a/src/compress.lua +++ b/src/compress.lua @@ -277,13 +277,7 @@ for _, nodename in ipairs(v) do t[nodename] = {} for _, shape in ipairs(circular_saw_names) do - local to_add = true - - if shape[1] == "slope" and shape[2] == "" then - to_add = nil - end - - if to_add then + if shape[1] ~= "slope" or shape[2] ~= "" then insert(t[nodename], fmt("%s_%s%s", shape[1], nodename, shape[2])) end end @@ -292,7 +286,7 @@ for _, nodename in ipairs(v) do to_compress[fmt("%s:%s", mod, slope_name)] = { replace = slope_name, - by = t[nodename] + by = t[nodename], } end end