mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore: ⚰️ Remove dead code and unused imports
This commit is contained in:
parent
3a37790315
commit
f87bcbd0da
37 changed files with 37 additions and 86 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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")) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export default class UserDelete extends UserFinderCommand<typeof UserDelete> {
|
|||
};
|
||||
|
||||
public async run(): Promise<void> {
|
||||
const { flags, args } = await this.parse(UserDelete);
|
||||
const { flags } = await this.parse(UserDelete);
|
||||
|
||||
const users = await this.findUsers();
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ export default class UserReset extends UserFinderCommand<typeof UserReset> {
|
|||
};
|
||||
|
||||
public async run(): Promise<void> {
|
||||
const { flags, args } = await this.parse(UserReset);
|
||||
const { flags } = await this.parse(UserReset);
|
||||
|
||||
const users = await this.findUsers();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue