Jelajahi Sumber

replaced let with const

Gildas 7 tahun lalu
induk
melakukan
1b9fb1a858
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      lib/single-file/css-declarations-parser.js

+ 1 - 1
lib/single-file/css-declarations-parser.js

@@ -615,7 +615,7 @@ this.parseCss = this.parseCss || (() => {
 				const temp = [s.token];
 				while (!(s.next().tokenType == SEMICOLON_TOKEN_TYPE || s.next().tokenType == EOF_TOKEN_TYPE))
 					temp.push(consumeAComponentValue(s));
-				let decl = consumeADeclaration(new TokenStream(temp));
+				const decl = consumeADeclaration(new TokenStream(temp));
 				if (decl) decls.push(decl);
 			} else {
 				parseerror(s);