server/backends/irc/connection-manager/connectionManager.js
Function connect
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function connect(userId, nick, network) {
if (sockets[`${userId}:${network}`]) {
log.warn({ id: userId }, `Impossible happened. Already connected to IRC network: ${network}`);
return;
}
Function handleIdentConnection
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleIdentConnection(socket) {
const timer = setTimeout(() => {
if (socket) {
socket.destroy();
}