Remove unneeded type assertion of an empty array.
This commit is contained in:
parent
d2925a3aa9
commit
965e0a2602
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export async function queueRequest(request: DiscordApi.Message | DiscordApi.Inte
|
|||
|
||||
const messagesForChannel = channelsRunning.ensure(
|
||||
request.channelId,
|
||||
() => { return [] as DiscordApi.Message[]; },
|
||||
() => { return []; },
|
||||
);
|
||||
const shouldStart = messagesForChannel.length == 0;
|
||||
messagesForChannel.push(request);
|
||||
|
|
Loading…
Reference in a new issue