Skip to content

Commit ab636b0

Browse files
authored
Merge pull request #5075 from andreipfeiffer/master
Refactor: use const for non reassignable identifier
2 parents 2ba0499 + 3b3449c commit ab636b0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/RuleSet.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = class RuleSet {
104104
if(typeof rule !== "object")
105105
throw new Error("Unexcepted " + typeof rule + " when object was expected as rule (" + rule + ")");
106106

107-
let newRule = {};
107+
const newRule = {};
108108
let useSource;
109109
let resourceSource;
110110
let condition;
@@ -265,7 +265,7 @@ module.exports = class RuleSet {
265265
return RuleSet.normalizeUseItemString(item);
266266
}
267267

268-
let newItem = {};
268+
const newItem = {};
269269

270270
if(item.options && item.query)
271271
throw new Error("Provided options and query in use");
@@ -312,7 +312,7 @@ module.exports = class RuleSet {
312312
if(typeof condition !== "object")
313313
throw Error("Unexcepted " + typeof condition + " when condition was expected (" + condition + ")");
314314

315-
let matchers = [];
315+
const matchers = [];
316316
Object.keys(condition).forEach(key => {
317317
const value = condition[key];
318318
switch(key) {

0 commit comments

Comments
 (0)