Skip to content

Commit 1a72b97

Browse files
committed
f style
1 parent db1c462 commit 1a72b97

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
@@ -1476,10 +1476,8 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
14761476
claimable_amount_satoshis: htlc.amount_msat / 1000,
14771477
claimable_height: htlc.cltv_expiry,
14781478
});
1479-
} else {
1480-
if us.payment_preimages.get(&htlc.payment_hash).is_some() {
1481-
claimable_inbound_htlc_value_sat += htlc.amount_msat / 1000;
1482-
}
1479+
} else if us.payment_preimages.get(&htlc.payment_hash).is_some() {
1480+
claimable_inbound_htlc_value_sat += htlc.amount_msat / 1000;
14831481
}
14841482
}
14851483
res.push(ClaimableBalance::ClaimableOnChannelClose {

0 commit comments

Comments
 (0)