Skip to content

Commit 93a48a3

Browse files
committed
respond to code review comments
1 parent acfcf40 commit 93a48a3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/services/services.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,16 +1270,21 @@ module ts {
12701270

12711271
function programUpToDate(): boolean {
12721272
// If we haven't create a program yet, then it is not up-to-date
1273-
if (!program) return false;
1273+
if (!program) {
1274+
return false;
1275+
}
12741276

12751277
// If number of files in the program do not match, it is not up-to-date
12761278
var hostFilenames = hostCache.getFilenames();
1277-
if (program.getSourceFiles().length !== hostFilenames.length) return false;
1279+
if (program.getSourceFiles().length !== hostFilenames.length) {
1280+
return false;
1281+
}
12781282

12791283
// If any file is not up-to-date, then the whole program is not up-to-date
12801284
for (var i = 0, n = hostFilenames.length; i < n; i++) {
1281-
if (!sourceFileUpToDate(program.getSourceFile(hostFilenames[i])))
1285+
if (!sourceFileUpToDate(program.getSourceFile(hostFilenames[i]))) {
12821286
return false;
1287+
}
12831288
}
12841289

12851290
// If the compilation settings do no match, then the program is not up-to-date

0 commit comments

Comments
 (0)