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
|
||||
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: {
|
||||
@ -101,3 +102,4 @@ export async function execute(interaction) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user