Skip to content
Snippets Groups Projects
Commit 47a23d0a authored by Rhys Arkins's avatar Rhys Arkins
Browse files

chore: rename for less confusion

parent 772bc176
No related branches found
No related tags found
No related merge requests found
......@@ -34,10 +34,10 @@ async function getSourcePurl(name) {
new RegExp(`<meta name="go-source" content="${name}\\s+([^\\s]+)`)
);
if (sourceMatch) {
const [, sourceUrl] = sourceMatch;
logger.debug({ depName: name, sourceUrl }, 'Go lookup sourceUrl');
if (sourceUrl && sourceUrl.startsWith('https://github.com/')) {
return getGithubPurl(sourceUrl.replace('https://github.com/', ''));
const [, goSourceUrl] = sourceMatch;
logger.debug({ depName: name, goSourceUrl }, 'Go lookup source url');
if (goSourceUrl && goSourceUrl.startsWith('https://github.com/')) {
return getGithubPurl(goSourceUrl.replace('https://github.com/', ''));
}
} else {
logger.trace({ depName: name }, 'No go-source header found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment