RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/e2e/server/beforeCreateRoom.ts

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (
        settings.get<boolean>('E2E_Enable') &&
        ((type === 'd' && settings.get<boolean>('E2E_Enabled_Default_DirectRooms')) ||
            (type === 'p' && settings.get<boolean>('E2E_Enabled_Default_PrivateRooms')))
    ) {
Severity: Major
Found in apps/meteor/app/e2e/server/beforeCreateRoom.ts - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status