fix(inferium-harvester): removeFirst util

This commit is contained in:
Guillaume ARM 2024-05-20 19:33:14 +02:00
parent f7a83ef911
commit 865d6b4f5b

View File

@ -62,6 +62,8 @@ local function removeFirst(t, x)
table.insert(res, v)
end
end
return res
end
local function find(t, predicate)
@ -404,6 +406,10 @@ local function replantProcedure()
retrieveLocalPlan()
end
if localPlan == nil then
error('cannot retrieve the local plan')
end
local remotePlan = fetchRemotePlan()
if remotePlan == nil then