Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
browntarik committed Jul 31, 2024
1 parent 2405597 commit 5402801
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Extension/src/LanguageServer/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,18 @@ class Settings {
public getArrayOfStringsWithUndefinedDefault(section: string, allowNull: boolean = false): string[] | undefined | null {
const info: any = this.settings.inspect<string[]>(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;
}
Expand All @@ -212,7 +212,7 @@ class Settings {
if (isString(info.workspaceFolderValue)) {
return info.workspaceFolderValue;
}
}
}

if (info.workspaceValue !== undefined) {
if (isString(info.workspaceValue)) {
Expand Down

0 comments on commit 5402801

Please sign in to comment.