fga-eps-mds/2020.1-VC_Gestor-BackEnd

View on GitHub
packages/benefits/src/controller/UpdateBenefitResolve.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Consider simplifying this complex logical expression.
Open

if (title === "" || description === "" || redeem_way === "" ||
title === null || description === null || redeem_way === null || quantity === null ) {
throw { error: "Fill request.body correctly, cannot be an empty string or null value "};
}
Severity: Major
Found in packages/benefits/src/controller/UpdateBenefitResolve.js - About 1 hr to fix
    Category
    Status