From 54028014c22df9783b57a7541a4c299382e127b7 Mon Sep 17 00:00:00 2001 From: Tarik Brown Date: Wed, 31 Jul 2024 14:05:22 -0700 Subject: [PATCH] Fix lint issues --- Extension/src/LanguageServer/settings.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Extension/src/LanguageServer/settings.ts b/Extension/src/LanguageServer/settings.ts index 2d1d8151f3..eb7b7b356b 100644 --- a/Extension/src/LanguageServer/settings.ts +++ b/Extension/src/LanguageServer/settings.ts @@ -186,18 +186,18 @@ class Settings { public getArrayOfStringsWithUndefinedDefault(section: string, allowNull: boolean = false): string[] | undefined | null { const info: any = this.settings.inspect(section); if (info.workspaceFolderValue !== undefined) { - if ((allowNull && info.workspaceFolderValue == null) || isArrayOfString(info.workspaceFolderValue)) { + if ((allowNull && info.workspaceFolderValue === null) || isArrayOfString(info.workspaceFolderValue)) { return info.workspaceFolderValue; } } - if ((allowNull && info.workspaceValue == null) || info.workspaceValue !== undefined) { + if ((allowNull && info.workspaceValue === null) || info.workspaceValue !== undefined) { if (isArrayOfString(info.workspaceValue)) { return info.workspaceValue; } - } + } - if ((allowNull && info.globalValue == null) || info.globalValue !== undefined) { + if ((allowNull && info.globalValue === null) || info.globalValue !== undefined) { if (isArrayOfString(info.globalValue)) { return info.globalValue; } @@ -212,7 +212,7 @@ class Settings { if (isString(info.workspaceFolderValue)) { return info.workspaceFolderValue; } - } + } if (info.workspaceValue !== undefined) { if (isString(info.workspaceValue)) {