mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 03:06:25 +00:00
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 () {
|
function createHttpServer () {
|
||||||
if (config.useSSL) {
|
if (config.useSSL) {
|
||||||
const ca = (function () {
|
const ca = (function () {
|
||||||
let i, len, results
|
let i, len
|
||||||
results = []
|
const results = []
|
||||||
for (i = 0, len = config.sslCAPath.length; i < len; i++) {
|
for (i = 0, len = config.sslCAPath.length; i < len; i++) {
|
||||||
results.push(fs.readFileSync(config.sslCAPath[i], 'utf8'))
|
results.push(fs.readFileSync(config.sslCAPath[i], 'utf8'))
|
||||||
}
|
}
|
||||||
@ -55,7 +55,7 @@ var server = createHttpServer()
|
|||||||
|
|
||||||
// logger
|
// logger
|
||||||
app.use(morgan('combined', {
|
app.use(morgan('combined', {
|
||||||
'stream': logger.stream
|
stream: logger.stream
|
||||||
}))
|
}))
|
||||||
|
|
||||||
// socket io
|
// socket io
|
||||||
|
Loading…
x
Reference in New Issue
Block a user