Skip to content

Commit a7f70bf

Browse files
committed
vm: don't catch error just to return less detail in Execute
No reason to not just return the error directly here. Callers should be using errors.Is and errors.As.
1 parent 41dc0f2 commit a7f70bf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

vm/vm.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,6 @@ func (vm *Engine) Execute() error {
346346
vm.newAsset, vm.prevAssets,
347347
)
348348
if err != nil {
349-
if errors.Is(err, tapscript.ErrInputMismatch) {
350-
return ErrInputMismatch
351-
}
352-
if errors.Is(err, tapscript.ErrNoInputs) {
353-
return ErrNoInputs
354-
}
355349
return err
356350
}
357351

0 commit comments

Comments
 (0)