removed unnecessary async modifier
Pull Request Check / testing (pull_request) Successful in 16s Details

pull/13/head
Jendrik 2025-09-28 12:40:38 +02:00
parent 7038d2c5c0
commit f759330400
1 changed files with 2 additions and 3 deletions

View File

@ -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