From d2773609d149e7d626797b8571e8ed61976922b5 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 15 Sep 2020 14:57:14 -0400 Subject: [PATCH] PadMessageHandler: Fix assignment to const variable --- src/node/handler/PadMessageHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index b32631ac4..6f3cab8a5 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -1175,7 +1175,7 @@ async function handleClientReady(client, message) let cached = historicalAuthorData[author]; // reuse previously created cache of author's data - const authorInfo = await (cached ? Promise.resolve(cached) : authorManager.getAuthor(author)); + let authorInfo = cached ? cached : (await authorManager.getAuthor(author)); // default fallback color to use if authorInfo.colorId is null const defaultColor = "#daf0b2";