Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5075 from andreipfeiffer/master
Refactor: use const for non reassignable identifier
  • Loading branch information
sokra committed Jun 18, 2017
2 parents 2ba0499 + 3b3449c commit ab636b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/RuleSet.js
Expand Up @@ -104,7 +104,7 @@ module.exports = class RuleSet {
if(typeof rule !== "object")
throw new Error("Unexcepted " + typeof rule + " when object was expected as rule (" + rule + ")");

let newRule = {};
const newRule = {};
let useSource;
let resourceSource;
let condition;
Expand Down Expand Up @@ -265,7 +265,7 @@ module.exports = class RuleSet {
return RuleSet.normalizeUseItemString(item);
}

let newItem = {};
const newItem = {};

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

let matchers = [];
const matchers = [];
Object.keys(condition).forEach(key => {
const value = condition[key];
switch(key) {
Expand Down

0 comments on commit ab636b0

Please sign in to comment.