Skip to content

Commit 9160e68

Browse files
committed
f - remove unnecessary variable
1 parent 4ec7d29 commit 9160e68

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
@@ -10633,16 +10633,16 @@ where
1063310633
&self.logger, None, None, Some(invoice.payment_hash()),
1063410634
);
1063510635

10636-
let (invoice, payment_id) = match payer_data {
10636+
let payment_id = match payer_data {
1063710637
Some((payment_id, nonce)) => {
1063810638
if invoice.verify_using_payer_data(payment_id, nonce, expanded_key, secp_ctx) {
10639-
(invoice, payment_id)
10639+
payment_id
1064010640
} else {
1064110641
return ResponseInstruction::NoResponse;
1064210642
}
1064310643
},
1064410644
None => match invoice.verify(expanded_key, secp_ctx) {
10645-
Ok(payment_id) => (invoice, payment_id),
10645+
Ok(payment_id) => payment_id,
1064610646
Err(()) => return ResponseInstruction::NoResponse,
1064710647
},
1064810648
};

0 commit comments

Comments
 (0)