Remove dead code in engine persist

This commit is contained in:
lash 2023-04-14 09:16:09 +01:00
parent b0d0fde3e0
commit 6f68d8de57
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -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 {