From 23151bfd3845499b7e937c384aa3779615b3df90 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 21 Jul 2022 13:06:42 +0000 Subject: [PATCH] Add named returns to `Exec` --- lib/runtime/wasmer/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/wasmer/instance.go b/lib/runtime/wasmer/instance.go index e9e7f0f805..b3a7f014b1 100644 --- a/lib/runtime/wasmer/instance.go +++ b/lib/runtime/wasmer/instance.go @@ -270,7 +270,7 @@ var ( ) // Exec calls the given function with the given data -func (in *Instance) Exec(function string, data []byte) ([]byte, error) { +func (in *Instance) Exec(function string, data []byte) (result []byte, err error) { in.Lock() defer in.Unlock()