Skip to content

Commit b697fbe

Browse files
committed
Add debug_assert!(false) for unreachable code
1 parent 23a1eee commit b697fbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/outbound_payment.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ impl OutboundPayments {
11751175
},
11761176
PendingOutboundPayment::AwaitingInvoice { .. } => {
11771177
log_error!(logger, "Payment not yet sent");
1178+
debug_assert!(false);
11781179
return
11791180
},
11801181
PendingOutboundPayment::InvoiceReceived { .. } => {

0 commit comments

Comments
 (0)