Skip to content

Commit

Permalink
chore: fixup clippy and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Dec 31, 2023
1 parent 933eacb commit 911708c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"Xtorrent",
"Xunlei",
"xxxxxxxxxxxxxxxxxxxxd",
"yyyyyyyyyyyyyyyyyyyyd"
"yyyyyyyyyyyyyyyyyyyyd",
"nvCFlJCq7fz7Qx6KoKTDiMZvns8l5Kw7"
],
"enableFiletypes": [
"dockerfile",
Expand Down
4 changes: 1 addition & 3 deletions src/core/services/torrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ pub async fn get_torrent_info(tracker: Arc<Tracker>, info_hash: &InfoHash) -> Op

let torrent_entry_option = db.get(info_hash);

let Some(torrent_entry) = torrent_entry_option else {
return None;
};
let torrent_entry = torrent_entry_option?;

let (seeders, completed, leechers) = torrent_entry.get_stats();

Expand Down

0 comments on commit 911708c

Please sign in to comment.