From 54dcfddd1a98bcb01d5eb9551f23950ace2abe80 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 23 Mar 2024 22:49:57 +0100 Subject: [PATCH] bugfix(linting): case block scope for variable usage --- commands/admin/member_roles/slash.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/admin/member_roles/slash.js b/commands/admin/member_roles/slash.js index 6c1c737..90edb41 100644 --- a/commands/admin/member_roles/slash.js +++ b/commands/admin/member_roles/slash.js @@ -56,7 +56,7 @@ export async function execute(interaction) { // Get command options const role = options.getRole('role'); switch (options.getSubcommand()) { - case 'add': + case 'add': { // Search for role in database const found = await Role.findOne({ where: { @@ -78,7 +78,8 @@ export async function execute(interaction) { console.info(`[INFO] Registered role to be assigned with ID '${role.id}'.`); break; - case 'remove': + } + case 'remove': { // Remove role from database const count = await Role.destroy({ where: { @@ -99,5 +100,6 @@ export async function execute(interaction) { console.info(`[INFO] Removed role to be assigned with ID '${role.id}'.`); break; + } } }