File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,7 @@ class CompilerBaselineRunner extends RunnerBase {
136
136
137
137
// check errors
138
138
it ( "Correct errors for " + fileName , ( ) => {
139
- if ( this . errors ) {
140
- Harness . Compiler . doErrorBaseline ( justName , toBeCompiled . concat ( otherFiles ) , result . errors ) ;
141
- }
139
+ Harness . Compiler . doErrorBaseline ( justName , toBeCompiled . concat ( otherFiles ) , result . errors ) ;
142
140
} ) ;
143
141
144
142
it ( `Correct module resolution tracing for ${ fileName } ` , ( ) => {
Original file line number Diff line number Diff line change @@ -1407,7 +1407,7 @@ namespace Harness {
1407
1407
1408
1408
export function doErrorBaseline ( baselinePath : string , inputFiles : TestFile [ ] , errors : ts . Diagnostic [ ] ) {
1409
1409
Harness . Baseline . runBaseline ( baselinePath . replace ( / \. t s x ? $ / , ".errors.txt" ) , ( ) : string => {
1410
- if ( errors . length === 0 ) {
1410
+ if ( ! errors || ( errors . length === 0 ) ) {
1411
1411
/* tslint:disable:no-null-keyword */
1412
1412
return null ;
1413
1413
/* tslint:enable:no-null-keyword */
You can’t perform that action at this time.
0 commit comments