Skip to content

Commit

Permalink
ledger: Apply clippy suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Sep 5, 2024
1 parent 63100d0 commit 9754d95
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ impl Ledger {
Ok(row.get::<_, i64>(0).unwrap())
});

let count = match count {
Ok(count) => count,
Err(_) => 0,
};
let count = count.unwrap_or(0);
tracing::trace!("Current connection count: {count}");

count
Expand Down

0 comments on commit 9754d95

Please sign in to comment.