chore: ⚰️ Remove dead code and unused imports

This commit is contained in:
Jesse Wierzbinski 2024-05-28 15:14:24 -10:00
parent 3a37790315
commit f87bcbd0da
No known key found for this signature in database
37 changed files with 37 additions and 86 deletions

View file

@ -30,7 +30,7 @@ export default class EmojiAdd extends BaseCommand<typeof EmojiAdd> {
static override flags = {};
public async run(): Promise<void> {
const { flags, args } = await this.parse(EmojiAdd);
const { args } = await this.parse(EmojiAdd);
// Check if emoji already exists
const existingEmoji = await db.query.Emojis.findFirst({

View file

@ -1,7 +1,7 @@
import confirm from "@inquirer/confirm";
import { Args, Flags } from "@oclif/core";
import { Flags } from "@oclif/core";
import chalk from "chalk";
import { and, eq, inArray, isNull } from "drizzle-orm";
import { eq } from "drizzle-orm";
import ora from "ora";
import { EmojiFinderCommand } from "~/cli/classes";
import { formatArray } from "~/cli/utils/format";
@ -34,7 +34,7 @@ export default class EmojiDelete extends EmojiFinderCommand<
};
public async run(): Promise<void> {
const { flags, args } = await this.parse(EmojiDelete);
const { flags } = await this.parse(EmojiDelete);
const emojis = await this.findEmojis();

View file

@ -46,7 +46,7 @@ export default class EmojiImport extends BaseCommand<typeof EmojiImport> {
};
public async run(): Promise<void> {
const { flags, args } = await this.parse(EmojiImport);
const { args } = await this.parse(EmojiImport);
// Check if path ends in .zip, warn the user if it doesn't
if (!args.path.endsWith(".zip")) {