Chocobozzz/PeerTube

View on GitHub
server/core/middlewares/validators/videos/video-passwords.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this function.
Open

    return next()
Severity: Major
Found in server/core/middlewares/validators/videos/video-passwords.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        if (!await isVideoPasswordDeletable(res)) return
    Severity: Major
    Found in server/core/middlewares/validators/videos/video-passwords.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return next()
      Severity: Major
      Found in server/core/middlewares/validators/videos/video-passwords.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return next()
        Severity: Major
        Found in server/core/middlewares/validators/videos/video-passwords.ts - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status