We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5343336 commit d66e70aCopy full SHA for d66e70a
src/compiler/program.ts
@@ -114,8 +114,11 @@ module ts {
114
}
115
116
function isEmitBlocked(sourceFile?: SourceFile): boolean {
117
- return getDiagnostics(sourceFile).length !== 0 ||
118
- (options.noEmitOnError && getDiagnosticsProducingTypeChecker().getDiagnostics(sourceFile).length !== 0);
+ if (options.noEmitOnError) {
+ return getDiagnostics(sourceFile).length !== 0 || getDiagnosticsProducingTypeChecker().getDiagnostics(sourceFile).length !== 0;
119
+ }
120
+
121
+ return false;
122
123
124
function getDiagnosticsProducingTypeChecker() {
0 commit comments