mirror of https://github.com/status-im/codimd.git
refactor: fix lint on app.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
692e6ab2ed
commit
b884955fe5
6
app.js
6
app.js
|
@ -28,8 +28,8 @@ var csp = require('./lib/csp')
|
|||
function createHttpServer () {
|
||||
if (config.useSSL) {
|
||||
const ca = (function () {
|
||||
let i, len, results
|
||||
results = []
|
||||
let i, len
|
||||
const results = []
|
||||
for (i = 0, len = config.sslCAPath.length; i < len; i++) {
|
||||
results.push(fs.readFileSync(config.sslCAPath[i], 'utf8'))
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ var server = createHttpServer()
|
|||
|
||||
// logger
|
||||
app.use(morgan('combined', {
|
||||
'stream': logger.stream
|
||||
stream: logger.stream
|
||||
}))
|
||||
|
||||
// socket io
|
||||
|
|
Loading…
Reference in New Issue