mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
inline await statement
This commit is contained in:
parent
635b89fdaa
commit
8e4039c7d7
@ -160,8 +160,7 @@ export const getPathForExecutable = memoizeAsync(
|
||||
// it is not mentioned in docs and cannot be infered by the type signature...
|
||||
const standardPath = vscode.Uri.joinPath(vscode.Uri.file(os.homedir()), ".cargo", "bin", executableName);
|
||||
|
||||
const exist = await isFileAtUri(standardPath);
|
||||
if (exist) return standardPath.fsPath;
|
||||
if (await isFileAtUri(standardPath)) return standardPath.fsPath;
|
||||
} catch (err) {
|
||||
log.error("Failed to read the fs info", err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user