diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 20abc61247d..0ef01fefb7a 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -10629,16 +10629,16 @@ where _ => return ResponseInstruction::NoResponse, }; - let (invoice, payment_id) = match payer_data { + let payment_id = match payer_data { Some((payment_id, nonce)) => { if invoice.verify_using_payer_data(payment_id, nonce, expanded_key, secp_ctx) { - (invoice, payment_id) + payment_id } else { return ResponseInstruction::NoResponse; } }, None => match invoice.verify(expanded_key, secp_ctx) { - Ok(payment_id) => (invoice, payment_id), + Ok(payment_id) => payment_id, Err(()) => return ResponseInstruction::NoResponse, }, };