Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 8 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import isURL from './is-url.js' |
||
2 | |||
3 | 2 | const getPath = location => |
|
4 | 7 | isURL(location) |
|
5 | ? new URL(location) |
||
|
|||
6 | : location |
||
7 | |||
8 | export default getPath |
||
9 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.