Merge pull request #964 from SISheogorath/fix/gitlabWarning

Omit unneeded warning if no gitlab is configured
This commit is contained in:
Christoph (Sheogorath) Kern 2018-09-25 11:23:40 +02:00 committed by GitHub
commit bdf897d31c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ config.isOAuth2Enable = config.oauth2.clientID && config.oauth2.clientSecret
config.isPDFExportEnable = config.allowPDFExport
// Check gitlab api version
if (config.gitlab.version !== 'v4' && config.gitlab.version !== 'v3') {
if (config.gitlab && config.gitlab.version !== 'v4' && config.gitlab.version !== 'v3') {
logger.warn('config.js contains wrong version (' + config.gitlab.version + ') for gitlab api; it should be \'v3\' or \'v4\'. Defaulting to v4')
config.gitlab.version = 'v4'
}