Skip to content

Commit

Permalink
Adjust code to pass eslint prefer-const (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbarth authored Jun 15, 2023
1 parent f9e2cfa commit 67b3a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"curly": "error",
"eqeqeq": ["warn", "smart"],
"no-var": "error",
"prefer-const": "warn"
"prefer-const": "error"
}
}
6 changes: 3 additions & 3 deletions lib/exclusive-canonicalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ ExclusiveCanonicalization.prototype.processInner = function (

let i;
let pfxCopy;
let ns = this.renderNs(
const ns = this.renderNs(
node,
prefixesInScope,
defaultNs,
Expand Down Expand Up @@ -300,7 +300,7 @@ ExclusiveCanonicalization.prototype.process = function (node, options) {
* If you have a PrefixList then use it and the ancestors to add the necessary namespaces
*/
if (inclusiveNamespacesPrefixList) {
let prefixList =
const prefixList =
inclusiveNamespacesPrefixList instanceof Array
? inclusiveNamespacesPrefixList
: inclusiveNamespacesPrefixList.split(" ");
Expand All @@ -319,7 +319,7 @@ ExclusiveCanonicalization.prototype.process = function (node, options) {
});
}

let res = this.processInner(
const res = this.processInner(
node,
[],
defaultNs,
Expand Down

0 comments on commit 67b3a78

Please sign in to comment.