Skip to content

Commit 72894d1

Browse files
authored
Merge pull request #928 from Pingu501/bugfix/wrong-gitlab-api-version-check
BUGFIX: wrong version check for gitlab api
2 parents 3a857a3 + f728fdb commit 72894d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ config.isOAuth2Enable = config.oauth2.clientID && config.oauth2.clientSecret
104104
config.isPDFExportEnable = config.allowPDFExport
105105

106106
// Check gitlab api version
107-
if (config.gitlab.version !== 'v4' || config.gitlab.version !== 'v3') {
108-
logger.warn('config.js contains wrong version (' + config.gitlab.version + ') for gitlab api; it should be \'v3\' or \'v4\'. Defaulting to v3')
107+
if (config.gitlab.version !== 'v4' && config.gitlab.version !== 'v3') {
108+
logger.warn('config.js contains wrong version (' + config.gitlab.version + ') for gitlab api; it should be \'v3\' or \'v4\'. Defaulting to v4')
109109
config.gitlab.version = 'v4'
110110
}
111111

0 commit comments

Comments
 (0)