Open lhitmi opened 2 months ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/meta/errors.js | 1 | 76.74% | ||
src/categories/create.js | 1 | 86.11% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 10550029021: | -0.005% |
Covered Lines: | 22324 |
Relevant Lines: | 25584 |
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This refactor introduces a local variable cloneFromCid to store the parsed integer value, reducing redundant parseInt calls. The if condition is now only checks cloneFromCid, which handles invalid cases due to parseInt returning NaN for non-numeric strings. This overall reduces the cognitive complexity from 17 to 15. Resolves #25