Skip to content

Commit

Permalink
Fix JS falsy comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAuguste committed Feb 15, 2024
1 parent 88cbb5f commit 2b496f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ export async function activate(context: ExtensionContext) {
});

const zigConfig = vscode.workspace.getConfiguration("zig");
if (!zigConfig.get<string>("path")) return;
if (zigConfig.get<string>("path") === undefined) return;
const zlsConfig = workspace.getConfiguration("zig.zls");
if (!zlsConfig.get<string>("path")) return;
if (zlsConfig.get<string>("path") === undefined) return;
if (zlsConfig.get<boolean>("checkForUpdate") && shouldCheckUpdate(context, "zlsUpdate")) {
await checkUpdate(context);
}
Expand Down

0 comments on commit 2b496f4

Please sign in to comment.