Skip to content

Commit c0f3428

Browse files
JiraliteSyjalo
andcommitted
refactor: more readable ternary
Co-Authored-By: Synbulat Biishev <[email protected]>
1 parent ff46e95 commit c0f3428

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/discord.js/src/client/websocket/WebSocketShard.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ class WebSocketShard extends EventEmitter {
195195
this.readyTimeout = setTimeout(
196196
() => {
197197
this.debug([
198-
// eslint-disable-next-line max-len
199-
`Shard ${hasGuildsIntent ? 'did' : 'will'} not receive anymore guild packets${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.`,
198+
hasGuildsIntent
199+
? `Shard did not receive any guild packets in ${waitGuildTimeout} ms.`
200+
: 'Shard will not receive anymore guild packets.',
200201
`Unavailable guild count: ${this.expectedGuilds.size}`,
201202
]);
202203

0 commit comments

Comments
 (0)