From 3af11114c9266993e6cce42cbb440770a2e4d4a1 Mon Sep 17 00:00:00 2001 From: VincentBailly Date: Fri, 6 Jun 2025 11:26:13 +0000 Subject: [PATCH] remove unnecessary lambdas --- src/compiler/program.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index abb937d0271f0..445946dab0c67 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -4986,8 +4986,8 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host: HostForUseSource function fileOrDirectoryExistsUsingSource(fileOrDirectory: string, isFile: boolean): boolean { const fileOrDirectoryExistsUsingSource = isFile ? - (file: string) => fileExistsIfProjectReferenceDts(file) : - (dir: string) => directoryExistsIfProjectReferenceDeclDir(dir); + fileExistsIfProjectReferenceDts : + directoryExistsIfProjectReferenceDeclDir; // Check current directory or file const result = fileOrDirectoryExistsUsingSource(fileOrDirectory); if (result !== undefined) return result;