RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/ui-message/client/findParentMessage.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function findParentMessage has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const findParentMessage = (() => {
    const waiting: string[] = [];
    let resolve: (resolved: IMessage[] | PromiseLike<IMessage[]>) => void;
    let pending = new Promise<IMessage[]>((r) => {
        resolve = r;
Severity: Minor
Found in apps/meteor/app/ui-message/client/findParentMessage.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status