Skip to content

Commit

Permalink
fixed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
catplvsplus committed Aug 20, 2024
1 parent 3b532f2 commit 55bd79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reciple/src/classes/CLI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 55bd79a

Please sign in to comment.