Remove unneeded type assertion of an empty array.

This commit is contained in:
Wroclaw 2023-05-08 02:43:36 +02:00
parent d2925a3aa9
commit 965e0a2602

View file

@ -87,7 +87,7 @@ export async function queueRequest(request: DiscordApi.Message | DiscordApi.Inte
const messagesForChannel = channelsRunning.ensure( const messagesForChannel = channelsRunning.ensure(
request.channelId, request.channelId,
() => { return [] as DiscordApi.Message[]; }, () => { return []; },
); );
const shouldStart = messagesForChannel.length == 0; const shouldStart = messagesForChannel.length == 0;
messagesForChannel.push(request); messagesForChannel.push(request);