mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove unnecessary code.
This commit is contained in:
1 parent
1385d9b50c
commit
72d23c7937
1 file changed
-6
@@ -5369,12 +5369,6 @@ module ts {
|
||||
function getEmitOutput(fileName: string): EmitOutput {
|
||||
synchronizeHostData();
|
||||
|
||||
// If the option is set to not emit on errors, and there are any errors, then we don't
|
||||
// want to proceed.
|
||||
if (program.getCompilerOptions().noEmitOnError && getPreEmitDiagnostics(program).length > 0) {
|
||||
return { outputFiles: [], emitSkipped: true };
|
||||
}
|
||||
|
||||
let sourceFile = getValidSourceFile(fileName);
|
||||
let outputFiles: OutputFile[] = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user