Content-Length: 301286 | pFad | https://snyk.io/redirect/github/webpack/webpack/commit/ab636b0156d5dcadb1617a8c8cccefcd5c2e82b1

BB07 Merge pull request #5075 from andreipfeiffer/master · webpack/webpack@ab636b0 · GitHub
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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://snyk.io/redirect/github/webpack/webpack/commit/ab636b0156d5dcadb1617a8c8cccefcd5c2e82b1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy