From f7593304009c5fd5571506b5887f8731e52ca4a5 Mon Sep 17 00:00:00 2001 From: Jendrik Date: Sun, 28 Sep 2025 12:40:38 +0200 Subject: [PATCH] removed unnecessary async modifier --- src/module/xml-import/xml-import.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/module/xml-import/xml-import.mjs b/src/module/xml-import/xml-import.mjs index 41488168..e7681a07 100644 --- a/src/module/xml-import/xml-import.mjs +++ b/src/module/xml-import/xml-import.mjs @@ -27,8 +27,7 @@ export async function importCharacter(actorId, file) { let dom = domParser.parseFromString(xmlString, 'application/xml') let rawJson = getJsonFromXML(dom) - //for some reason this await is necessary, even if Webstorm thinks it is obsolete - let characterJson = await mapRawJson(rawJson) + let characterJson = mapRawJson(rawJson) actor.update(characterJson) } @@ -107,7 +106,7 @@ function calculateBirthdate(json) { * @param rawJson the json parsed from the Helden-Software XML * @returns {{}} a json representation of the character */ -async function mapRawJson(rawJson) { +function mapRawJson(rawJson) { let json = {} let held = rawJson.helden.held; json.name = held.name