RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/webdav/server/methods/getFileFromWebdav.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

    async getFileFromWebdav(accountId, file) {
        const userId = Meteor.userId();

        if (!userId) {
            throw new Meteor.Error('error-invalid-user', 'Invalid User', { method: 'getFileFromWebdav' });
Severity: Minor
Found in apps/meteor/app/webdav/server/methods/getFileFromWebdav.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status