Skip to content

Commit 8e4039c

Browse files
committed
inline await statement
1 parent 635b89f commit 8e4039c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editors/code/src/toolchain.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ export const getPathForExecutable = memoizeAsync(
160160
// it is not mentioned in docs and cannot be infered by the type signature...
161161
const standardPath = vscode.Uri.joinPath(vscode.Uri.file(os.homedir()), ".cargo", "bin", executableName);
162162

163-
const exist = await isFileAtUri(standardPath);
164-
if (exist) return standardPath.fsPath;
163+
if (await isFileAtUri(standardPath)) return standardPath.fsPath;
165164
} catch (err) {
166165
log.error("Failed to read the fs info", err);
167166
}

0 commit comments

Comments
 (0)