PadMessageHandler: Fix assignment to const variable
This commit is contained in:
parent
5ac5b65aff
commit
d2773609d1
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue