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