REmove duplicate input setter in engine
This commit is contained in:
parent
a90f41bfe4
commit
c78f2a9c66
@ -72,10 +72,6 @@ func (en *Engine) Exec(input []byte, ctx context.Context) error {
|
|||||||
if len(code) == 0 {
|
if len(code) == 0 {
|
||||||
return fmt.Errorf("no code to execute")
|
return fmt.Errorf("no code to execute")
|
||||||
}
|
}
|
||||||
err = en.st.SetInput(input)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
code, err = vm.Run(code, en.st, en.rs, ctx)
|
code, err = vm.Run(code, en.st, en.rs, ctx)
|
||||||
en.st.SetCode(code)
|
en.st.SetCode(code)
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user