Skip to content

Commit 9bce39a

Browse files
committed
f style
1 parent 4efc1b5 commit 9bce39a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,10 +1478,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
14781478
claimable_amount_satoshis: htlc.amount_msat / 1000,
14791479
claimable_height: htlc.cltv_expiry,
14801480
});
1481-
} else {
1482-
if us.payment_preimages.get(&htlc.payment_hash).is_some() {
1483-
claimable_inbound_htlc_value_sat += htlc.amount_msat / 1000;
1484-
}
1481+
} else if us.payment_preimages.get(&htlc.payment_hash).is_some() {
1482+
claimable_inbound_htlc_value_sat += htlc.amount_msat / 1000;
14851483
}
14861484
}
14871485
res.push(ClaimableBalance::ClaimableOnChannelClose {

0 commit comments

Comments
 (0)