Skip to content

Commit 1b64b24

Browse files
committed
f drop hunk that shouldnt be there
1 parent a44c46a commit 1b64b24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,9 +2357,7 @@ impl<Signer: Sign> Channel<Signer> {
23572357
&HTLCUpdateAwaitingACK::ClaimHTLC { ref payment_preimage, htlc_id, .. } => {
23582358
match self.get_update_fulfill_htlc(htlc_id, *payment_preimage, logger) {
23592359
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-
}
2360+
update_fulfill_htlcs.push(update_fulfill_msg_option.unwrap());
23632361
if let Some(mut additional_monitor_update) = additional_monitor_update_opt {
23642362
monitor_update.updates.append(&mut additional_monitor_update.updates);
23652363
}

0 commit comments

Comments
 (0)