aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils/aoml.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-09-20 12:57:45 +0200
committerstonedDiscord <Tukz@gmx.de>2023-09-20 12:57:45 +0200
commit59028dd4046ad0715d80be8d1ed0031f20f05b7a (patch)
treec66c470ad4fb959b8959f1895e410762c557437b /webAO/utils/aoml.ts
parentef28c355ef69fee7511956751bbdb5dcd1a931b1 (diff)
mostly whitespaces, please don't break
Diffstat (limited to 'webAO/utils/aoml.ts')
-rw-r--r--webAO/utils/aoml.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/utils/aoml.ts b/webAO/utils/aoml.ts
index 5b5da5f..1f2f482 100644
--- a/webAO/utils/aoml.ts
+++ b/webAO/utils/aoml.ts
@@ -10,7 +10,7 @@ interface Aoml {
color: string;
}
const aomlParser = (text: string) => {
- let parsed: {[key: string]: Aoml}= {}
+ const parsed: {[key: string]: Aoml}= {}
let currentHeader = ''
for (const line of text.split(/\r?\n/)) {
if (line === '') {
@@ -35,7 +35,7 @@ const aomlParser = (text: string) => {
const mlConfig = (AO_HOST: string) => {
const defaultUrl = `${AO_HOST}themes/default/chat_config.ini`
- let aomlParsed: Promise<{ [key: string]: Aoml }> = request(defaultUrl).then((data) => aomlParser(data));
+ const aomlParsed: Promise<{ [key: string]: Aoml }> = request(defaultUrl).then((data) => aomlParser(data));