Remove unnecessary code.

This commit is contained in:
Cyrus Najmabadi 2015-03-31 17:48:07 -07:00
parent 1385d9b50c
commit 72d23c7937

View file

@ -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[] = [];