From 1395a653440ee206eda0597e04fda1e7c0fac2c9 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 3 Jun 2024 18:43:18 +0100 Subject: [PATCH] Fix linter --- .forgejo/workflows/production.yml | 1 + .forgejo/workflows/stage.yml | 1 + .forgejo/workflows/test.yml | 3 ++- src/commands/balance.ts | 6 +++--- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/production.yml b/.forgejo/workflows/production.yml index 157fe8d..19ce662 100644 --- a/.forgejo/workflows/production.yml +++ b/.forgejo/workflows/production.yml @@ -20,6 +20,7 @@ jobs: - run: yarn install --frozen-lockfile - run: yarn build - run: yarn test + - run: yarn lint - name: "Copy files over to location" run: cp -r . ${{ secrets.PROD_REPO_PATH }} diff --git a/.forgejo/workflows/stage.yml b/.forgejo/workflows/stage.yml index 638f2e0..37ff5ea 100644 --- a/.forgejo/workflows/stage.yml +++ b/.forgejo/workflows/stage.yml @@ -20,6 +20,7 @@ jobs: - run: yarn install --frozen-lockfile - run: yarn build - run: yarn test + - run: yarn lint - name: "Copy files over to location" run: cp -r . ${{ secrets.STAGE_REPO_PATH }} diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 5cee253..b2de547 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -21,4 +21,5 @@ jobs: node-version: 18.x - run: yarn install --frozen-lockfile - run: yarn build - - run: yarn test \ No newline at end of file + - run: yarn test + - run: yarn lint \ No newline at end of file diff --git a/src/commands/balance.ts b/src/commands/balance.ts index 2dcba50..c8f087c 100644 --- a/src/commands/balance.ts +++ b/src/commands/balance.ts @@ -8,14 +8,14 @@ export default class Balance extends Command { super(); this.CommandBuilder = new SlashCommandBuilder() - .setName("balance") - .setDescription("Get your currency balance"); + .setName("balance") + .setDescription("Get your currency balance"); } public override async execute(interaction: CommandInteraction) { const user = await User.FetchOneById(User, interaction.user.id); - let userBalance = user != null ? user.Currency : 0; + const userBalance = user != null ? user.Currency : 0; const embed = new EmbedBuilder() .setColor(EmbedColours.Ok)