Skip to content

Commit e1381d8

Browse files
committed
f Drop unnecessary return value from insert_webhook
1 parent fd7c64e commit e1381d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning-liquidity/src/lsps5/service.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,16 +581,15 @@ impl PeerState {
581581
self.webhooks.iter().map(|(n, _)| n).cloned().collect()
582582
}
583583

584-
fn insert_webhook(&mut self, name: LSPS5AppName, hook: Webhook) -> bool {
584+
fn insert_webhook(&mut self, name: LSPS5AppName, hook: Webhook) {
585585
for (n, h) in self.webhooks.iter_mut() {
586586
if *n == name {
587587
*h = hook;
588-
return true;
588+
return;
589589
}
590590
}
591591

592592
self.webhooks.push((name, hook));
593-
false
594593
}
595594

596595
fn remove_webhook(&mut self, name: &LSPS5AppName) -> bool {

0 commit comments

Comments
 (0)