Skip to content

Commit f774e79

Browse files
committed
f - remove unnecessary variable
1 parent 352b1bf commit f774e79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10629,16 +10629,16 @@ where
1062910629
_ => return ResponseInstruction::NoResponse,
1063010630
};
1063110631

10632-
let (invoice, payment_id) = match payer_data {
10632+
let payment_id = match payer_data {
1063310633
Some((payment_id, nonce)) => {
1063410634
if invoice.verify_using_payer_data(payment_id, nonce, expanded_key, secp_ctx) {
10635-
(invoice, payment_id)
10635+
payment_id
1063610636
} else {
1063710637
return ResponseInstruction::NoResponse;
1063810638
}
1063910639
},
1064010640
None => match invoice.verify(expanded_key, secp_ctx) {
10641-
Ok(payment_id) => (invoice, payment_id),
10641+
Ok(payment_id) => payment_id,
1064210642
Err(()) => return ResponseInstruction::NoResponse,
1064310643
},
1064410644
};

0 commit comments

Comments
 (0)