refactor: fix lint on app.js

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-08-02 00:56:57 +08:00
parent 692e6ab2ed
commit b884955fe5
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 3 additions and 3 deletions

6
app.js
View File

@ -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