Removes bogus code

This commit is contained in:
Eric Amodio
2020-04-16 11:48:34 -04:00
parent 2548906f4c
commit 77e79529e1

View File

@@ -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,