summaryrefslogtreecommitdiff
path: root/lib/config
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-09-25 11:23:40 +0200
committerGitHub2018-09-25 11:23:40 +0200
commitbdf897d31c7eb5f819807c6910ce1aea84cbf7ee (patch)
treed18d2de2b2ab677575bc87421c8c9bf853b9f9cf /lib/config
parent9e4d16566302e12ea529c733867009a0cd6edd7f (diff)
parent7e0be69abb5857431777905ccb1edb1ff7bc7633 (diff)
Merge pull request #964 from SISheogorath/fix/gitlabWarning
Omit unneeded warning if no gitlab is configured
Diffstat (limited to '')
-rw-r--r--lib/config/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index f96684ea..26f0ae96 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -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'
}