Use optional catch binding
Co-Authored-By: itaisteinherz <itaisteinherz@gmail.com>
This commit is contained in:
parent
bd9ea506c4
commit
d579c6625c
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ namespace is { // tslint:disable-line:no-namespace
|
|||
try {
|
||||
new URL(value); // tslint:disable-line no-unused-expression
|
||||
return true;
|
||||
} catch (_) { // tslint:disable-line no-unused
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue