chore(isMailtoURI): remove unnecessary default to by WikiRik · Pull Request #2341 · validatorjs/validator.js
Line 44 is only partially covered before this change. This PR hopes to change that so the newly open PRs don't fail codecov/project.
Splitting a query always returned at least 1, so the case where the first element (to) was empty couldn't get hit by tests (at least not in our current test setup where we only test strings).
Checklist
- PR contains only changes related; no stray files, etc.
- README updated (where applicable)
- Tests written (where applicable)
- References provided in PR (where applicable)