mirror of https://github.com/status-im/codimd.git
Simplify loop
This commit is contained in:
parent
9949795533
commit
fc626a6724
|
@ -95,14 +95,9 @@ config.isLDAPEnable = config.ldap.url
|
|||
config.isPDFExportEnable = config.allowpdfexport
|
||||
|
||||
// generate correct path
|
||||
config.sslcapath = (function () {
|
||||
var i, len, results
|
||||
results = []
|
||||
for (i = 0, len = config.sslcapath.length; i < len; i++) {
|
||||
results.push(path.resolve(appRootPath, config.sslcapath[i]))
|
||||
}
|
||||
return results
|
||||
})()
|
||||
config.sslcapath.forEach(function (capath, i, array) {
|
||||
array[i] = path.resolve(appRootPath, capath)
|
||||
})
|
||||
|
||||
config.sslcertpath = path.join(appRootPath, config.sslcertpath)
|
||||
config.sslkeypath = path.join(appRootPath, config.sslkeypath)
|
||||
|
|
Loading…
Reference in New Issue