Remove dead code in engine persist
This commit is contained in:
parent
b0d0fde3e0
commit
6f68d8de57
@ -23,11 +23,6 @@ func RunPersisted(cfg Config, rs resource.Resource, pr persist.Persister, input
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
st := pr.GetState()
|
|
||||||
location, idx := st.Where()
|
|
||||||
if location != "" {
|
|
||||||
cfg.Root = location
|
|
||||||
}
|
|
||||||
|
|
||||||
en := NewEngine(cfg, pr.GetState(), rs, pr.GetMemory(), ctx)
|
en := NewEngine(cfg, pr.GetState(), rs, pr.GetMemory(), ctx)
|
||||||
|
|
||||||
@ -42,7 +37,6 @@ func RunPersisted(cfg Config, rs resource.Resource, pr persist.Persister, input
|
|||||||
if c > 0 {
|
if c > 0 {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
_ = idx
|
|
||||||
|
|
||||||
_, err = en.Exec(input, ctx)
|
_, err = en.Exec(input, ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user