tlv: remove unused error return value
This commit also modifies a previous migration. Because the change is so limited, we don't consider this a significant risk.
This commit is contained in:
6 files changed
+8
-34
No files matched your search
+1
-7
@@ -3134,13 +3134,7 @@ func (r *rpcServer) extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPayme
|
||||
payIntent.cltvLimit = cltvLimit
|
||||
|
||||
if len(rpcPayReq.DestTlv) != 0 {
|
||||
var err error
|
||||
payIntent.destTLV, err = tlv.MapToRecords(
|
||||
rpcPayReq.DestTlv,
|
||||
)
|
||||
if err != nil {
|
||||
return payIntent, err
|
||||
}
|
||||
payIntent.destTLV = tlv.MapToRecords(rpcPayReq.DestTlv)
|
||||
}
|
||||
|
||||
validateDest := func(dest route.Vertex) error {
|
||||
|
||||
Reference in new issue
Block a user