diff --git a/pkg/workflows/wasm/host/module.go b/pkg/workflows/wasm/host/module.go index 48aa75118..f8bd77d02 100644 --- a/pkg/workflows/wasm/host/module.go +++ b/pkg/workflows/wasm/host/module.go @@ -736,7 +736,5 @@ func write(memory, src []byte, ptr, size int32) int64 { return -1 } buffer := memory[ptr : ptr+size] - dataLen := int64(len(src)) - copy(buffer, src) - return dataLen + return int64(copy(buffer, src)) }