Skip to content

Commit 911708c

Browse files
committed
chore: fixup clippy and spelling
1 parent 933eacb commit 911708c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cSpell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@
129129
"Xtorrent",
130130
"Xunlei",
131131
"xxxxxxxxxxxxxxxxxxxxd",
132-
"yyyyyyyyyyyyyyyyyyyyd"
132+
"yyyyyyyyyyyyyyyyyyyyd",
133+
"nvCFlJCq7fz7Qx6KoKTDiMZvns8l5Kw7"
133134
],
134135
"enableFiletypes": [
135136
"dockerfile",

src/core/services/torrent.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ pub async fn get_torrent_info(tracker: Arc<Tracker>, info_hash: &InfoHash) -> Op
9797

9898
let torrent_entry_option = db.get(info_hash);
9999

100-
let Some(torrent_entry) = torrent_entry_option else {
101-
return None;
102-
};
100+
let torrent_entry = torrent_entry_option?;
103101

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

0 commit comments

Comments
 (0)