RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/room/body/hooks/useFileUpload.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useFileUpload has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useFileUpload = () => {
    const chat = useChat();
    if (!chat) {
        throw new Error('No ChatContext provided');
    }
Severity: Minor
Found in apps/meteor/client/views/room/body/hooks/useFileUpload.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status