From 47a23d0a61a989cc00b6795f83dc5df78ab6d969 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 10 Dec 2018 06:03:52 +0100 Subject: [PATCH] chore: rename for less confusion --- lib/datasource/go.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/datasource/go.js b/lib/datasource/go.js index 4f06e132cc..b2fae9f775 100644 --- a/lib/datasource/go.js +++ b/lib/datasource/go.js @@ -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'); -- GitLab