Skip to content

Commit 0f4a7ff

Browse files
committed
f clearer
1 parent d04a130 commit 0f4a7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7689,7 +7689,7 @@ where
76897689
// We shouldn't consider peer entries for any peers that either have no funded
76907690
// channels or are disconnected and had some funded channel in the past (and we're
76917691
// just keeping the entry around for closed_channel_monitor_update_ids).
7692-
peer.total_channel_count() > 0 || (!peer.is_connected && peer.closed_channel_monitor_update_ids.len() > 0)
7692+
peer.total_channel_count() > 0 || (!peer.is_connected && !peer.closed_channel_monitor_update_ids.is_empty())
76937693
});
76947694
let per_peer_state = self.per_peer_state.read().unwrap();
76957695
let peer_state_mutex = per_peer_state.get(counterparty_node_id)

0 commit comments

Comments
 (0)