Skip to content

Commit 32dcbc7

Browse files
committed
fixup: Add ChannelContext::get_next_{local, remote}_commitment_stats
trim unnecessary if else expression
1 parent 265218a commit 32dcbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4139,7 +4139,7 @@ where
41394139
.pending_outbound_htlcs
41404140
.iter()
41414141
.filter(|OutboundHTLCOutput { state, .. }| match (state, local) {
4142-
(OutboundHTLCState::LocalAnnounced(..), _) => if include_counterparty_unknown_htlcs { true } else { false },
4142+
(OutboundHTLCState::LocalAnnounced(..), _) => include_counterparty_unknown_htlcs,
41434143
(OutboundHTLCState::Committed, _) => true,
41444144
(OutboundHTLCState::RemoteRemoved(..), true) => false,
41454145
(OutboundHTLCState::RemoteRemoved(..), false) => true,

0 commit comments

Comments
 (0)