Skip to content

Commit

Permalink
Fuse type error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akesher committed Sep 23, 2023
1 parent 27da4ac commit 4c4a5a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/torrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ export async function getTorrentByFuzzyName(

// If none match, proceed with fuzzy name check on all names.
filteredNames = filteredNames.length > 0 ? filteredNames : allNames;


// @ts-expect-error fuse types are confused
const potentialMatches = new Fuse(filteredNames, {
keys: ["name"],
distance: 6,
Expand Down

0 comments on commit 4c4a5a5

Please sign in to comment.