Explorar o código

replaced let with const

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
f3019f1d29
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;