mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Removes bogus code
This commit is contained in:
@@ -435,14 +435,13 @@ export class Git {
|
||||
const [, letter] = match;
|
||||
|
||||
try {
|
||||
let networkPath = await new Promise<string>(resolve =>
|
||||
const networkPath = await new Promise<string>(resolve =>
|
||||
realpath.native(`${letter}:`, { encoding: 'utf8' }, (err, resolvedPath) =>
|
||||
// eslint-disable-next-line eqeqeq
|
||||
resolve(err != null ? undefined : resolvedPath),
|
||||
),
|
||||
);
|
||||
if (networkPath !== undefined) {
|
||||
networkPath = `${networkPath}\\`;
|
||||
return path.normalize(
|
||||
repoUri.fsPath.replace(
|
||||
networkPath,
|
||||
|
||||
Reference in New Issue
Block a user