File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1270,16 +1270,21 @@ module ts {
1270
1270
1271
1271
function programUpToDate ( ) : boolean {
1272
1272
// 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
+ }
1274
1276
1275
1277
// If number of files in the program do not match, it is not up-to-date
1276
1278
var hostFilenames = hostCache . getFilenames ( ) ;
1277
- if ( program . getSourceFiles ( ) . length !== hostFilenames . length ) return false ;
1279
+ if ( program . getSourceFiles ( ) . length !== hostFilenames . length ) {
1280
+ return false ;
1281
+ }
1278
1282
1279
1283
// If any file is not up-to-date, then the whole program is not up-to-date
1280
1284
for ( var i = 0 , n = hostFilenames . length ; i < n ; i ++ ) {
1281
- if ( ! sourceFileUpToDate ( program . getSourceFile ( hostFilenames [ i ] ) ) )
1285
+ if ( ! sourceFileUpToDate ( program . getSourceFile ( hostFilenames [ i ] ) ) ) {
1282
1286
return false ;
1287
+ }
1283
1288
}
1284
1289
1285
1290
// If the compilation settings do no match, then the program is not up-to-date
You can’t perform that action at this time.
0 commit comments