Skip to content

Commit d913a80

Browse files
committed
f cleanup
1 parent 7ee0410 commit d913a80

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
@@ -2141,10 +2141,7 @@ where L::Target: Logger {
21412141
).map(|(counterparty_node_id, _)| counterparty_node_id);
21422142
counterparty_opt.map(|cp| direction.select_node_id(our_node_id, *cp))
21432143
};
2144-
match node_id {
2145-
Some(node_id) => node_counters.node_counter_from_id(&node_id),
2146-
None => None,
2147-
}
2144+
node_id.and_then(|node_id| node_counters.node_counter_from_id(&node_id),)
21482145
},
21492146
}
21502147
})

0 commit comments

Comments
 (0)