Skip to content

Commit 9e561e5

Browse files
committed
Formatting
1 parent c70eb4c commit 9e561e5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/extension.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ function getGitHubLink(cb, fileFsPath, line) {
7171

7272
projectName = parsedUri.substring(parsedUri.lastIndexOf("/") + 1, parsedUri.length);
7373

74-
if (repoDir === cwd) {
75-
// The workspace directory is the git repo folder
76-
subdir = fileFsPath ? fileFsPath.substring(workspace.rootPath.length).replace(/\"/g, "") : undefined;
77-
} else {
78-
// The workspace directory is a subdirectory of the git repo folder so we need to prepend the the nested path
79-
var repoRelativePath = cwd.replace(repoDir, "/");
80-
subdir = repoRelativePath + editor.document.uri.fsPath.substring(workspace.rootPath.length).replace(/\"/g, "");
81-
}
74+
if (repoDir === cwd) {
75+
// The workspace directory is the git repo folder
76+
subdir = fileFsPath ? fileFsPath.substring(workspace.rootPath.length).replace(/\"/g, "") : undefined;
77+
} else {
78+
// The workspace directory is a subdirectory of the git repo folder so we need to prepend the the nested path
79+
var repoRelativePath = cwd.replace(repoDir, "/");
80+
subdir = repoRelativePath + editor.document.uri.fsPath.substring(workspace.rootPath.length).replace(/\"/g, "");
81+
}
8282

8383
if (parsedUri.startsWith(scUrls.github)) {
8484
gitLink = formGitHubLink(parsedUri, branch, subdir, line);
@@ -93,7 +93,7 @@ function getGitHubLink(cb, fileFsPath, line) {
9393
if (gitLink)
9494
cb(gitLink);
9595
});
96-
});
96+
});
9797
}
9898

9999
function getGitHubLinkForFile(fileFsPath, cb) {

0 commit comments

Comments
 (0)