Skip to content

Commit

Permalink
fix(Client): remove optional chaining from 05a932a
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Jun 30, 2022
1 parent c7689d0 commit 34cd985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Client.js
Expand Up @@ -456,7 +456,7 @@ class Client extends EventEmitter {
}
}

if(this.options.shardConcurrency === "auto" && typeof data.session_start_limit?.max_concurrency === "number") {
if(this.options.shardConcurrency === "auto" && data.session_start_limit && typeof data.session_start_limit.max_concurrency === "number") {
this.shards.setConcurrency(data.session_start_limit.max_concurrency);
}

Expand Down

0 comments on commit 34cd985

Please sign in to comment.