RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/methods/pinMessage.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function pinMessage has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    pinMessage(message: IMessage) {
        if (!Meteor.userId()) {
            throw new Meteor.Error('error-not-authorized', 'Not authorized', {
                method: 'pinMessage',
            });
Severity: Minor
Found in apps/meteor/client/methods/pinMessage.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status