go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit c78f2a9c66461629e82362c3db2014451803cbcd
parent a90f41bfe4a56954951e812c5128b147e335e7e1
Author: lash <dev@holbrook.no>
Date:   Sat,  1 Apr 2023 23:58:26 +0100

REmove duplicate input setter in engine

Diffstat:
Mgo/engine/engine.go | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/go/engine/engine.go b/go/engine/engine.go @@ -72,10 +72,6 @@ func (en *Engine) Exec(input []byte, ctx context.Context) error { if len(code) == 0 { 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) en.st.SetCode(code) return err