1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-28 03:57:22 +02:00

minor fix

This commit is contained in:
Gerkiz 2022-03-17 12:23:16 +01:00
parent bc56388028
commit d096d4ca4e
2 changed files with 8 additions and 4 deletions

View File

@ -36,10 +36,12 @@ function Public.set(key, value)
end
function Public.remove(key, sub_key)
if key then
if key and sub_key then
if this[key] and this[key][sub_key] then
this[key][sub_key] = nil
elseif this[key] then
end
elseif key then
if this[key] then
this[key] = nil
end
end

View File

@ -253,10 +253,12 @@ function Public.set(key, value)
end
function Public.remove(key, sub_key)
if key then
if key and sub_key then
if this[key] and this[key][sub_key] then
this[key][sub_key] = nil
elseif this[key] then
end
elseif key then
if this[key] then
this[key] = nil
end
end