Small cleanup

This commit is contained in:
Jean-Patrick Guerrero 2022-01-09 03:29:10 +01:00
parent 6b8e64b532
commit 617ef40a1d

View File

@ -277,13 +277,7 @@ for _, nodename in ipairs(v) do
t[nodename] = {} t[nodename] = {}
for _, shape in ipairs(circular_saw_names) do for _, shape in ipairs(circular_saw_names) do
local to_add = true if shape[1] ~= "slope" or shape[2] ~= "" then
if shape[1] == "slope" and shape[2] == "" then
to_add = nil
end
if to_add then
insert(t[nodename], fmt("%s_%s%s", shape[1], nodename, shape[2])) insert(t[nodename], fmt("%s_%s%s", shape[1], nodename, shape[2]))
end end
end end
@ -292,7 +286,7 @@ for _, nodename in ipairs(v) do
to_compress[fmt("%s:%s", mod, slope_name)] = { to_compress[fmt("%s:%s", mod, slope_name)] = {
replace = slope_name, replace = slope_name,
by = t[nodename] by = t[nodename],
} }
end end
end end