Reformat using prettier
diff --git a/src/utils/search.ts b/src/utils/search.ts
index 310dbf8..5fce74f 100644
--- a/src/utils/search.ts
+++ b/src/utils/search.ts
@@ -2,17 +2,14 @@
function getResults(typed: string, options: string[]): string[] {
options = options.filter((option) => option.length <= 100); // thanks discord. 6000 character limit on slash command inputs but only 100 for autocomplete.
- if (!typed)
- return options
- .slice(0, 25)
- .sort()
+ if (!typed) return options.slice(0, 25).sort();
// @ts-expect-error
const fuse = new Fuse(options, {
useExtendedSearch: true,
findAllMatches: true,
- minMatchCharLength: typed.length > 3 ? 3 : typed.length,
+ minMatchCharLength: typed.length > 3 ? 3 : typed.length
}).search(typed);
- return fuse.slice(0, 25).map((option: {item: string }) => option.item );
+ return fuse.slice(0, 25).map((option: { item: string }) => option.item);
}
-export { getResults }
\ No newline at end of file
+export { getResults };