RocketChat/Rocket.Chat

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

Summary

Maintainability
A
1 hr
Test Coverage

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

    async getWebdavFilePreview(accountId, path) {
        const userId = Meteor.userId();

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

    There are no issues that match your filters.

    Category
    Status