Fix eslint errors

This commit is contained in:
NGPixel
2017-04-04 22:04:17 -04:00
parent 3b4402fb28
commit 8ba3b3552d
4 changed files with 7 additions and 10 deletions

View File

@@ -198,12 +198,10 @@ server.on('error', (error) => {
switch (error.code) {
case 'EACCES':
console.error('Listening on port ' + appconfig.port + ' requires elevated privileges!')
process.exit(1)
break
return process.exit(1)
case 'EADDRINUSE':
console.error('Port ' + appconfig.port + ' is already in use!')
process.exit(1)
break
return process.exit(1)
default:
throw error
}