refactor: use a more straightforward return value

Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
fuyangpengqi
2025-02-28 17:09:56 +08:00
parent 8532955b35
commit 150f72414a
6 changed files with 7 additions and 7 deletions

View File

@@ -186,7 +186,7 @@ func serializeResult(rp *paymentResult) ([]byte, []byte, error) {
return nil, nil, err
}
return key, buff.Bytes(), err
return key, buff.Bytes(), nil
}
// deserializeResult deserializes a payment result.