apps/meteor/app/irc/server/methods/resetIrcConnection.ts
Function resetIrcConnection
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async resetIrcConnection() {
const ircEnabled = Boolean(settings.get('IRC_Enabled'));
const updatedLastPingValue = await Settings.updateValueById('IRC_Bridge_Last_Ping', new Date(0), { upsert: true });
if (updatedLastPingValue.modifiedCount || updatedLastPingValue.upsertedCount) {