Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 7, 2024
1 parent ab19f98 commit 7291f74
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/cln_plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,12 +814,9 @@ where

// Send to notification to the wildcard
// subscription "*" it it exists
match &self.wildcard_subscription {
Some(cb) => {
let call = cb(plugin.clone(), params.clone());
tokio::spawn(async move { call.await.unwrap() });
}
None => {}
if let Some(cb) = &self.wildcard_subscription {
let call = cb(plugin.clone(), params.clone());
tokio::spawn(async move { call.await.unwrap() });
};

// Find the appropriate callback and process it
Expand Down

0 comments on commit 7291f74

Please sign in to comment.