betagouv/service-national-universel

View on GitHub
api/src/controllers/young/account.js

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (
      // Cohort and status should be checked
      value.department !== young.department &&
      value.cohort !== "à venir" &&
      young.statusPhase1 === YOUNG_STATUS_PHASE1.WAITING_AFFECTATION &&
Severity: Major
Found in api/src/controllers/young/account.js - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status