Parcourir la source

replaced let with const

Gildas il y a 7 ans
Parent
commit
f3019f1d29
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      lib/single-file/parse-srcset.js

+ 2 - 2
lib/single-file/parse-srcset.js

@@ -33,8 +33,8 @@ this.parseSrcset = (() => {
 		}
 
 		function collectCharacters(regEx) {
-			let chars,
-				match = regEx.exec(input.substring(pos));
+			let chars;
+			const match = regEx.exec(input.substring(pos));
 			if (match) {
 				chars = match[0];
 				pos += chars.length;