From 3a023ed7d65d619ace07df5b4ad811c91af8e350 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 28 Jun 2018 10:50:39 -0700 Subject: [PATCH] Remove dead code testing result of `resolveProjectReferencePath` (#25284) --- src/compiler/tsbuild.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index a7bddf96620..498b9eb6432 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -494,10 +494,6 @@ namespace ts { function addProject(projectSpecification: string) { const fileName = resolvePath(compilerHost.getCurrentDirectory(), projectSpecification); const refPath = resolveProjectReferencePath(compilerHost, { path: fileName }); - if (!refPath) { - return buildHost.error(Diagnostics.File_0_does_not_exist, projectSpecification); - } - if (!compilerHost.fileExists(refPath)) { return buildHost.error(Diagnostics.File_0_does_not_exist, fileName); }