From 55bd79a5a9cedaa91df84ee46cde1026fccc3e32 Mon Sep 17 00:00:00 2001 From: Cat++ <69035887+catplvsplus@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:41:15 +0800 Subject: [PATCH] fixed checks --- packages/reciple/src/classes/CLI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/reciple/src/classes/CLI.ts b/packages/reciple/src/classes/CLI.ts index 906fc0ab..909c42ae 100644 --- a/packages/reciple/src/classes/CLI.ts +++ b/packages/reciple/src/classes/CLI.ts @@ -25,11 +25,11 @@ export class CLI implements CLIOptions { public static commandsDir = path.join(CLI.root, './dist/commands'); static get shardMode() { - return !!CLI.shardEnv.SHARDS && !!CLI.shardEnv.SHARD_COUNT; + return 'SHARDS' in CLI.shardEnv && 'SHARD_COUNT' in CLI.shardEnv; } static get shardLogsFolder() { - return CLI.shardMode ? CLI.shardEnv.SHARDS_LOGS_FOLDER : null; + return CLI.shardMode ? CLI.shardEnv.SHARDS_LOGS_FOLDER ?? null : null; } static get shardDeployCommands() {