mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
refactor: use a more straightforward return value
Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user