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:
Joost Jager committed 2019-12-04 13:27:29 +01:00
1 parent 883f9e5f9a
commit 5d4ceca038
6 files changed
+8 -34

No files matched your search

+1 -7
View File
@@ -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 {