From d416d1d2badb9c2913473e30d6c06a718bca16a5 Mon Sep 17 00:00:00 2001 From: David Wengier Date: Tue, 2 Jul 2024 14:34:10 +1000 Subject: [PATCH] Apply suggestions from code review --- src/razor/src/razorLanguageServerOptionsResolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/razor/src/razorLanguageServerOptionsResolver.ts b/src/razor/src/razorLanguageServerOptionsResolver.ts index 813e61f28..9804bbd9b 100644 --- a/src/razor/src/razorLanguageServerOptionsResolver.ts +++ b/src/razor/src/razorLanguageServerOptionsResolver.ts @@ -59,7 +59,7 @@ function findLanguageServerExecutable(withinDir: string) { pathWithExtension = `${fileName}.dll`; } - let fullPath = path.join(withinDir, pathWithExtension); + const fullPath = path.join(withinDir, pathWithExtension); if (!fs.existsSync(fullPath)) { throw new Error( @@ -76,4 +76,4 @@ function isWindows() { function isMacOS() { return os.platform() === 'darwin'; -} \ No newline at end of file +}