fix(inferium-harvester): removeFirst util
This commit is contained in:
parent
f7a83ef911
commit
865d6b4f5b
@ -62,6 +62,8 @@ local function removeFirst(t, x)
|
|||||||
table.insert(res, v)
|
table.insert(res, v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return res
|
||||||
end
|
end
|
||||||
|
|
||||||
local function find(t, predicate)
|
local function find(t, predicate)
|
||||||
@ -404,6 +406,10 @@ local function replantProcedure()
|
|||||||
retrieveLocalPlan()
|
retrieveLocalPlan()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if localPlan == nil then
|
||||||
|
error('cannot retrieve the local plan')
|
||||||
|
end
|
||||||
|
|
||||||
local remotePlan = fetchRemotePlan()
|
local remotePlan = fetchRemotePlan()
|
||||||
|
|
||||||
if remotePlan == nil then
|
if remotePlan == nil then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user