* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...

This commit is contained in:
Bryan Ashby 2018-01-15 12:22:11 -07:00
parent a106050ba3
commit ac1433e84b
112 changed files with 1375 additions and 1898 deletions

View file

@ -28,7 +28,7 @@ module.exports = class LoginServerModule extends ServerModule {
} else {
client.user.properties.theme_id = conf.config.preLoginTheme;
}
theme.setClientTheme(client, client.user.properties.theme_id);
return cb(null); // note: currently useless to use cb here - but this may change...again...
}
@ -37,7 +37,7 @@ module.exports = class LoginServerModule extends ServerModule {
//
// Start tracking the client. We'll assign it an ID which is
// just the index in our connections array.
//
//
if(_.isUndefined(client.session)) {
client.session = {};
}
@ -68,7 +68,7 @@ module.exports = class LoginServerModule extends ServerModule {
client.on('close', err => {
const logFunc = err ? logger.log.info : logger.log.debug;
logFunc( { clientId : client.session.id }, 'Connection closed');
clientConns.removeClient(client);
});
@ -80,7 +80,7 @@ module.exports = class LoginServerModule extends ServerModule {
// likely just doesn't exist
client.term.write('\nIdle timeout expired. Goodbye!\n');
client.end();
}
}
});
});
}