From e23ca89b9aeca4d872e5a55c0252d6d4cdbc9fe5 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 16 Aug 2024 18:38:18 +0100 Subject: [PATCH] Fix linting --- src/commands/view.ts | 7 +------ src/helpers/CardSearchHelper.ts | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/commands/view.ts b/src/commands/view.ts index 6ed1e18..aff1ef5 100644 --- a/src/commands/view.ts +++ b/src/commands/view.ts @@ -1,10 +1,5 @@ -import { AttachmentBuilder, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js"; +import { CommandInteraction, SlashCommandBuilder } from "discord.js"; import { Command } from "../type/command"; -import { CoreClient } from "../client/client"; -import { readFileSync } from "fs"; -import path from "path"; -import Inventory from "../database/entities/app/Inventory"; -import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import AppLogger from "../client/appLogger"; import CardSearchHelper from "../helpers/CardSearchHelper"; diff --git a/src/helpers/CardSearchHelper.ts b/src/helpers/CardSearchHelper.ts index 27d19e8..c0f6bd5 100644 --- a/src/helpers/CardSearchHelper.ts +++ b/src/helpers/CardSearchHelper.ts @@ -15,7 +15,7 @@ interface ReturnedPage { export default class CardSearchHelper { public static async GenerateSearchPage(query: string, userid: string, page: number): Promise { - const fzf = new Fuse(CoreClient.Cards.flatMap(x => x.cards), { keys: ['name'] }); + const fzf = new Fuse(CoreClient.Cards.flatMap(x => x.cards), { keys: ["name"] }); const entries = fzf.search(query); const entry = entries[page];