Open e5z26 opened 2 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/middleware/admin.js | 10 | 12 | 83.33% | ||
<!-- | Total: | 10 | 12 | 83.33% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/meta/errors.js | 1 | 76.74% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 10607818019: | -0.004% |
Covered Lines: | 22326 |
Relevant Lines: | 25586 |
I changed an else and nestled if into else if on a helper function. I also removed a condition in an if (leads to adding some number to the time) by changing it into having the number times a factor (that is 0 or 1 depending on the condition) being added to the time. At the end of the code, instead of using an else, I returned on the other conditions and ran what was in the else in the body of the function. resolves #481