removed unnecessary async modifier
Pull Request Check / testing (pull_request) Successful in 16s
Details
Pull Request Check / testing (pull_request) Successful in 16s
Details
parent
7038d2c5c0
commit
f759330400
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue