From 07b7d5b7f36c2c83b5eb5ef0266d010ff5e2832d Mon Sep 17 00:00:00 2001 From: ziyeziye Date: Mon, 11 Dec 2023 18:14:19 +0800 Subject: [PATCH] AllowFailure nil --- call.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/call.go b/call.go index 1858891..8929516 100644 --- a/call.go +++ b/call.go @@ -74,6 +74,9 @@ func (call *Call) SetExtend(ext any) *Call { } func (call *Call) UnpackResult() []interface{} { + if call.Outputs == nil { + return nil + } return call.Outputs.([]interface{}) }