Skip to content

Commit 3af1111

Browse files
committed
remove unnecessary lambdas
1 parent ac03ba4 commit 3af1111

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4986,8 +4986,8 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host: HostForUseSource
49864986

49874987
function fileOrDirectoryExistsUsingSource(fileOrDirectory: string, isFile: boolean): boolean {
49884988
const fileOrDirectoryExistsUsingSource = isFile ?
4989-
(file: string) => fileExistsIfProjectReferenceDts(file) :
4990-
(dir: string) => directoryExistsIfProjectReferenceDeclDir(dir);
4989+
fileExistsIfProjectReferenceDts :
4990+
directoryExistsIfProjectReferenceDeclDir;
49914991
// Check current directory or file
49924992
const result = fileOrDirectoryExistsUsingSource(fileOrDirectory);
49934993
if (result !== undefined) return result;

0 commit comments

Comments
 (0)