andela/codepirates-ah-backend

View on GitHub
src/controllers/profile.controller.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function updateProfile has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static async updateProfile(req, res) {
    let filename = '';
    if (req.files.image) {
      filename = req.files.image.path;
    }
Severity: Minor
Found in src/controllers/profile.controller.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status