From 56a3a1d85da0f01d6ee53e1b7ca3a13de30476ab Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 6 Sep 2016 14:37:05 +0300 Subject: [PATCH] Removed redundant condition. --- app.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/app.js b/app.js index 04172b80..e0e86fff 100644 --- a/app.js +++ b/app.js @@ -509,17 +509,11 @@ io.sockets.on('connection', realtime.connection); //listen function startListen() { - if (config.usessl) { - server.listen(config.port, function () { - logger.info('HTTPS Server listening at port %d', config.port); - config.maintenance = false; - }); - } else { - server.listen(config.port, function () { - logger.info('HTTP Server listening at port %d', config.port); - config.maintenance = false; - }); - } + server.listen(config.port, function () { + var schema = config.usessl ? 'HTTPS' : 'HTTP'; + logger.info('%s Server listening at port %d', schema, config.port); + config.maintenance = false; + }); } // sync db then start listen