mirror of
https://github.com/status-im/codimd.git
synced 2025-02-03 13:33:25 +00:00
Removed redundant condition.
This commit is contained in:
parent
c8f2ec4d3d
commit
56a3a1d85d
16
app.js
16
app.js
@ -509,17 +509,11 @@ io.sockets.on('connection', realtime.connection);
|
|||||||
|
|
||||||
//listen
|
//listen
|
||||||
function startListen() {
|
function startListen() {
|
||||||
if (config.usessl) {
|
server.listen(config.port, function () {
|
||||||
server.listen(config.port, function () {
|
var schema = config.usessl ? 'HTTPS' : 'HTTP';
|
||||||
logger.info('HTTPS Server listening at port %d', config.port);
|
logger.info('%s Server listening at port %d', schema, config.port);
|
||||||
config.maintenance = false;
|
config.maintenance = false;
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
server.listen(config.port, function () {
|
|
||||||
logger.info('HTTP Server listening at port %d', config.port);
|
|
||||||
config.maintenance = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// sync db then start listen
|
// sync db then start listen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user