Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes in xmlParser.js #70

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/QDL/xmlParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class xmlParser {
let content = {}
const replaceBytes = new TextDecoder().decode(new Uint8Array([0xf0, 0xe9, 0x88, 0x14]));
for (let line of lines) {
if ("" == line) {
if ("" === line) {
continue;
}
line = "<?xml" + line;
Expand All @@ -31,7 +31,7 @@ export class xmlParser {
let data = [];
const replaceBytes = new TextDecoder().decode(new Uint8Array([0xf0, 0xe9, 0x88, 0x14]));
for (let line of lines) {
if ("" == line) {
if ("" === line) {
continue;
}
line = "<?xml" + line;
Expand All @@ -42,7 +42,7 @@ export class xmlParser {
const responseElement = xmlDoc.querySelector('log');
if (responseElement !== null) {
data = Array.from(responseElement.attributes).reduce((obj, attr) => {
if (attr.name == "value")
if (attr.name === "value")
obj.push(attr.value);
return obj;
}, data);
Expand Down
Loading