Skip to content

Commit fb80143

Browse files
author
Jackson Kearl
committed
1 parent 0d1d370 commit fb80143

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/url/browser/trustedDomains.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ async function getRemotes(fileService: IFileService, textFileService: ITextFileS
142142

143143
const RemoteMatcher = /^\s*url\s*=\s*(?:git@|https:\/\/)github\.com(?::|\/)([^.]*)\.git\s*$/mg;
144144
while (match = RemoteMatcher.exec(content)) {
145-
const [domain, repo] = [match[1], match[2]];
146-
if (domain && repo) {
145+
const repo = match[1];
146+
if (repo) {
147147
domains.add(`https://github.com/${repo}/`);
148148
}
149149
}

0 commit comments

Comments
 (0)