aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/disable.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/disable.ts')
-rw-r--r--src/commands/config/disable.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index 2e3ce74..521972b 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -70,8 +70,7 @@ export default class DisableCommand extends BushCommand {
if (global) {
if (action === 'toggle') {
const disabledCommands = (
- (await Global.findByPk(client.config.environment)) ??
- (await Global.create({ environment: client.config.environment }))
+ (await Global.findByPk(client.config.environment)) ?? (await Global.create({ environment: client.config.environment }))
).disabledCommands;
action = disabledCommands.includes(commandID) ? 'disable' : 'enable';
}