Browse Source

use var instead of let

Steven Silvester 7 năm trước cách đây
mục cha
commit
e3a0f1faf8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/package-integrity.js

+ 1 - 1
scripts/package-integrity.js

@@ -61,7 +61,7 @@ function validate(dname) {
 
     // Extract all of the imports from the TypeScript files.
     filenames.forEach(fileName => {
-        let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true);
+        var sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true);
         imports = imports.concat(getImports(sourceFile));
     });
     var names = Array.from(new Set(imports)).sort();