Simplify loop
This commit is contained in:
parent
9949795533
commit
fc626a6724
1 changed files with 3 additions and 8 deletions
|
@ -95,14 +95,9 @@ config.isLDAPEnable = config.ldap.url
|
||||||
config.isPDFExportEnable = config.allowpdfexport
|
config.isPDFExportEnable = config.allowpdfexport
|
||||||
|
|
||||||
// generate correct path
|
// generate correct path
|
||||||
config.sslcapath = (function () {
|
config.sslcapath.forEach(function (capath, i, array) {
|
||||||
var i, len, results
|
array[i] = path.resolve(appRootPath, capath)
|
||||||
results = []
|
})
|
||||||
for (i = 0, len = config.sslcapath.length; i < len; i++) {
|
|
||||||
results.push(path.resolve(appRootPath, config.sslcapath[i]))
|
|
||||||
}
|
|
||||||
return results
|
|
||||||
})()
|
|
||||||
|
|
||||||
config.sslcertpath = path.join(appRootPath, config.sslcertpath)
|
config.sslcertpath = path.join(appRootPath, config.sslcertpath)
|
||||||
config.sslkeypath = path.join(appRootPath, config.sslkeypath)
|
config.sslkeypath = path.join(appRootPath, config.sslkeypath)
|
||||||
|
|
Loading…
Reference in a new issue