Skip to content

Commit 237deb5

Browse files
committed
fmt + fix boolean logic issue
1 parent d9781c7 commit 237deb5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

vscode/src/find_server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ export async function ensureExecutable(
138138
}
139139

140140
if (!cargoPath) {
141-
return serverPath;
141+
return serverPath;
142142
}
143-
143+
144144
const disableAutoupdate = config.get<boolean>("disableAutoupdate", false);
145-
146-
if (!serverPath || !disableAutoupdate) {
147-
return serverPath;
145+
146+
if (serverPath && disableAutoupdate) {
147+
return serverPath;
148148
}
149149

150150
try {

0 commit comments

Comments
 (0)