Skip to content

Commit 2d1b68f

Browse files
authored
Fix the style fix (#10344)
1 parent a1dad91 commit 2d1b68f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gulpfile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,13 +977,13 @@ gulp.task("lint", "Runs tslint on the compiler sources. Optional arguments are:
977977
const fileMatcher = RegExp(cmdLineOptions["files"]);
978978
if (fold.isTravis()) console.log(fold.start("lint"));
979979

980-
const files: {stat: fs.Stats, path: string}[] = [];
980+
let files: {stat: fs.Stats, path: string}[] = [];
981981
return gulp.src(lintTargets, { read: false })
982982
.pipe(through2.obj((chunk, enc, cb) => {
983983
files.push(chunk);
984984
cb();
985985
}, (cb) => {
986-
files.filter(file => fileMatcher.test(file.path)).sort((filea, fileb) => filea.stat.size - fileb.stat.size);
986+
files = files.filter(file => fileMatcher.test(file.path)).sort((filea, fileb) => filea.stat.size - fileb.stat.size);
987987
const workerCount = (process.env.workerCount && +process.env.workerCount) || os.cpus().length;
988988
for (let i = 0; i < workerCount; i++) {
989989
spawnLintWorker(files, finished);

0 commit comments

Comments
 (0)