From dda92bd41f4bee11e2cc5de265ce4fbf5221f1ff Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 20 Sep 2023 13:10:36 +0200 Subject: autoformat with eslint --- webAO/utils/aoml.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webAO/utils/aoml.ts') diff --git a/webAO/utils/aoml.ts b/webAO/utils/aoml.ts index 1f2f482..a2c1dd5 100644 --- a/webAO/utils/aoml.ts +++ b/webAO/utils/aoml.ts @@ -64,10 +64,10 @@ const mlConfig = (AO_HOST: string) => { const closingStack = [] const colorStack = [] // each value in output will be an html element - let output: HTMLSpanElement[] = [] + const output: HTMLSpanElement[] = [] for (const letter of text) { - let currentSelector = document.createElement('span') - let currentIdentifier = identifiers.get(letter) + const currentSelector = document.createElement('span') + const currentIdentifier = identifiers.get(letter) const currentClosingLetter = closingStack[closingStack.length - 1] const keepChar = Number(currentIdentifier?.remove) === 0 if (currentClosingLetter === letter) { -- cgit