bugfix(linting): case block scope for variable usage
This commit is contained in:
parent
4653af6f90
commit
54dcfddd1a
@ -56,7 +56,7 @@ export async function execute(interaction) {
|
|||||||
// Get command options
|
// Get command options
|
||||||
const role = options.getRole('role');
|
const role = options.getRole('role');
|
||||||
switch (options.getSubcommand()) {
|
switch (options.getSubcommand()) {
|
||||||
case 'add':
|
case 'add': {
|
||||||
// Search for role in database
|
// Search for role in database
|
||||||
const found = await Role.findOne({
|
const found = await Role.findOne({
|
||||||
where: {
|
where: {
|
||||||
@ -78,7 +78,8 @@ export async function execute(interaction) {
|
|||||||
|
|
||||||
console.info(`[INFO] Registered role to be assigned with ID '${role.id}'.`);
|
console.info(`[INFO] Registered role to be assigned with ID '${role.id}'.`);
|
||||||
break;
|
break;
|
||||||
case 'remove':
|
}
|
||||||
|
case 'remove': {
|
||||||
// Remove role from database
|
// Remove role from database
|
||||||
const count = await Role.destroy({
|
const count = await Role.destroy({
|
||||||
where: {
|
where: {
|
||||||
@ -99,5 +100,6 @@ export async function execute(interaction) {
|
|||||||
|
|
||||||
console.info(`[INFO] Removed role to be assigned with ID '${role.id}'.`);
|
console.info(`[INFO] Removed role to be assigned with ID '${role.id}'.`);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user