Skip to content

Commit bdba4d9

Browse files
committed
style: change misleading vvariable name
1 parent e384429 commit bdba4d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/resolve-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ module.exports = (
2424
: GL_PREFIX
2525
: gitlabApiPathPrefix;
2626
const userGitlabUrl = gitlabUrl || GL_URL || GITLAB_URL;
27-
const defaultedGitlabToken =
27+
const defaultedGitlabUrl =
2828
userGitlabUrl ||
2929
(service === 'gitlab' && CI_PROJECT_URL && CI_PROJECT_PATH
3030
? CI_PROJECT_URL.replace(new RegExp(`/${CI_PROJECT_PATH}$`), '')
3131
: 'https://gitlab.com');
3232

3333
return {
3434
gitlabToken: GL_TOKEN || GITLAB_TOKEN,
35-
gitlabUrl: defaultedGitlabToken,
35+
gitlabUrl: defaultedGitlabUrl,
3636
gitlabApiUrl:
3737
userGitlabUrl && userGitlabApiPathPrefix
3838
? urlJoin(userGitlabUrl, userGitlabApiPathPrefix)
3939
: service === 'gitlab' && CI_API_V4_URL
4040
? CI_API_V4_URL
41-
: urlJoin(defaultedGitlabToken, isNil(userGitlabApiPathPrefix) ? '/api/v4' : userGitlabApiPathPrefix),
41+
: urlJoin(defaultedGitlabUrl, isNil(userGitlabApiPathPrefix) ? '/api/v4' : userGitlabApiPathPrefix),
4242
assets: assets ? castArray(assets) : assets,
4343
};
4444
};

0 commit comments

Comments
 (0)