Closed stockiNail closed 2 years ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/index.js | 2 | 72.73% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 2085427674: | 0.0% |
Covered Lines: | 24 |
Relevant Lines: | 31 |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/index.js | 2 | 72.73% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 2085427674: | 0.0% |
Covered Lines: | 24 |
Relevant Lines: | 31 |
The
typeof
was invoked twice in the parse method, to check if undefined (inif
statement) and later to get the type. Moved before consistency check in order to invoke only one when thevalue
argument is notnull
.