dont need to turn arrays into arrays, derp..

This commit is contained in:
Kyle Spearrin 2018-07-10 22:39:29 -04:00
parent 678b191a32
commit 089622d5b1
1 changed files with 3 additions and 3 deletions

View File

@ -47,11 +47,11 @@ export class KeePass2XmlImporter extends BaseImporter implements Importer {
this.result.folders.push(folder); this.result.folders.push(folder);
} }
Array.from(this.querySelectorAllDirectChild(node, 'Entry')).forEach((entry) => { this.querySelectorAllDirectChild(node, 'Entry').forEach((entry) => {
const cipherIndex = this.result.ciphers.length; const cipherIndex = this.result.ciphers.length;
const cipher = this.initLoginCipher(); const cipher = this.initLoginCipher();
Array.from(this.querySelectorAllDirectChild(entry, 'String')).forEach((entryString) => { this.querySelectorAllDirectChild(entry, 'String').forEach((entryString) => {
const valueEl = this.querySelectorDirectChild(entryString, 'Value'); const valueEl = this.querySelectorDirectChild(entryString, 'Value');
const value = valueEl != null ? valueEl.textContent : null; const value = valueEl != null ? valueEl.textContent : null;
if (this.isNullOrWhitespace(value)) { if (this.isNullOrWhitespace(value)) {
@ -83,7 +83,7 @@ export class KeePass2XmlImporter extends BaseImporter implements Importer {
} }
}); });
Array.from(this.querySelectorAllDirectChild(node, 'Group')).forEach((group) => { this.querySelectorAllDirectChild(node, 'Group').forEach((group) => {
this.traverse(group, false, groupName); this.traverse(group, false, groupName);
}); });
} }