Skip to content

Commit 4197b86

Browse files
authored
chore(isMailtoURI): remove unnecessary default to (#2341)
* chore: add additional testcases to isMailtoURI Line 44 is only partially covered before this change * chore: add additonal const to figure out which part is partial * chore: add testcase for single ? * chore: add another line to find partial coverage * chore: remove default to * chore: combine consts again
1 parent 332b501 commit 4197b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/isMailtoURI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function isMailtoURI(url, options) {
4141
return false;
4242
}
4343

44-
const [to = '', queryString = ''] = url.replace('mailto:', '').split('?');
44+
const [to, queryString = ''] = url.replace('mailto:', '').split('?');
4545

4646
if (!to && !queryString) {
4747
return true;

0 commit comments

Comments
 (0)