mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +02:00
refactor: use a more straightforward return value
Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
@@ -738,7 +738,7 @@ func serializeNewResult(rp *paymentResultNew) ([]byte, []byte, error) {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
return key, buff.Bytes(), err
|
||||
return key, buff.Bytes(), nil
|
||||
}
|
||||
|
||||
// getResultKeyNew returns a byte slice representing a unique key for this
|
||||
|
Reference in New Issue
Block a user