Skip to content

Commit

Permalink
refactor(index): remove unused catch binding (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Dec 30, 2024
1 parent cbf1270 commit bf39371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function safeRegex (re, opts) {
if (isRegExp(re)) re = re.source
else if (typeof re !== 'string') re = String(re)

try { re = parse(re) } catch (err) { return false }
try { re = parse(re) } catch { return false }

let reps = 0
return (function walk (node, starHeight) {
Expand Down

0 comments on commit bf39371

Please sign in to comment.