RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/irc/server/methods/resetIrcConnection.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function resetIrcConnection has 36 lines of code (exceeds 25 allowed). Consider refactoring.
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) {
Severity: Minor
Found in apps/meteor/app/irc/server/methods/resetIrcConnection.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status