We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44c46a commit 1b64b24Copy full SHA for 1b64b24
lightning/src/ln/channel.rs
@@ -2357,9 +2357,7 @@ impl<Signer: Sign> Channel<Signer> {
2357
&HTLCUpdateAwaitingACK::ClaimHTLC { ref payment_preimage, htlc_id, .. } => {
2358
match self.get_update_fulfill_htlc(htlc_id, *payment_preimage, logger) {
2359
Ok((update_fulfill_msg_option, additional_monitor_update_opt)) => {
2360
- if let Some(update_fulfill_msg) = update_fulfill_msg_option { //WTF XXX
2361
- update_fulfill_htlcs.push(update_fulfill_msg);
2362
- }
+ update_fulfill_htlcs.push(update_fulfill_msg_option.unwrap());
2363
if let Some(mut additional_monitor_update) = additional_monitor_update_opt {
2364
monitor_update.updates.append(&mut additional_monitor_update.updates);
2365
}
0 commit comments