From 965e0a260294a0090b90281a1982d2746f6e84c1 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 8 May 2023 02:43:36 +0200 Subject: [PATCH] Remove unneeded type assertion of an empty array. --- src/execution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execution.ts b/src/execution.ts index 66be083..3b4c3f1 100644 --- a/src/execution.ts +++ b/src/execution.ts @@ -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);