Skip to content

Commit 3bf47ad

Browse files
committed
f drop excess branches
1 parent ece528a commit 3bf47ad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -827,11 +827,8 @@ where L::Target: Logger {
827827
if chan_b.outbound_capacity_msat >= recommended_value_msat && chan_a.outbound_capacity_msat >= recommended_value_msat {
828828
// Sort in ascending order
829829
chan_a.outbound_capacity_msat.cmp(&chan_b.outbound_capacity_msat)
830-
} else if chan_a.outbound_capacity_msat > recommended_value_msat {
831-
core::cmp::Ordering::Less
832-
} else if chan_b.outbound_capacity_msat > recommended_value_msat {
833-
core::cmp::Ordering::Greater
834830
} else {
831+
// Sort in descending order
835832
chan_b.outbound_capacity_msat.cmp(&chan_a.outbound_capacity_msat)
836833
}
837834
});

0 commit comments

Comments
 (0)