Skip to content

Commit 50d8350

Browse files
committed
lint
1 parent fa34a00 commit 50d8350

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/signed-xml.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,23 +1155,23 @@ export class SignedXml {
11551155

11561156
for (const node of nodes) {
11571157
let referenceAttrs = "";
1158-
1158+
11591159
if (ref.isEmptyUri) {
11601160
referenceAttrs = 'URI=""';
11611161
} else {
11621162
const id = this.ensureHasId(node);
11631163
ref.uri = id;
11641164
referenceAttrs = `URI="#${id}"`;
11651165
}
1166-
1166+
11671167
if (ref.id) {
11681168
referenceAttrs += ` Id="${ref.id}"`;
11691169
}
1170-
1170+
11711171
if (ref.type) {
11721172
referenceAttrs += ` Type="${ref.type}"`;
11731173
}
1174-
1174+
11751175
res += `<${prefix}Reference ${referenceAttrs}>`;
11761176
res += `<${prefix}Transforms>`;
11771177
for (const trans of ref.transforms || []) {
@@ -1385,11 +1385,11 @@ export class SignedXml {
13851385
ref.uri = id;
13861386
referenceElem.setAttribute("URI", `#${id}`);
13871387
}
1388-
1388+
13891389
if (ref.id) {
13901390
referenceElem.setAttribute("Id", ref.id);
13911391
}
1392-
1392+
13931393
if (ref.type) {
13941394
referenceElem.setAttribute("Type", ref.type);
13951395
}

test/signature-unit-tests.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,8 +1312,9 @@ describe("Signature unit tests", function () {
13121312
);
13131313

13141314
const typeAttribute = referenceElement.getAttribute("Type");
1315-
expect(typeAttribute, "Reference element should have the correct Type attribute value").to.equal(
1316-
"http://www.w3.org/2000/09/xmldsig#Object",
1317-
);
1315+
expect(
1316+
typeAttribute,
1317+
"Reference element should have the correct Type attribute value",
1318+
).to.equal("http://www.w3.org/2000/09/xmldsig#Object");
13181319
});
13191320
});

0 commit comments

Comments
 (0)