Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Use empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Sep 13, 2019
1 parent ea6ed78 commit c67f1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attachScopes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const attachScopes: AttachScopes = function attachScopes(ast, propertyName = 'sc
if (node.type === 'CatchClause') {
newScope = new Scope({
parent: scope,
params: node.param ? [node.param] : undefined,
params: node.param ? [node.param] : [],
block: true
});
}
Expand Down

0 comments on commit c67f1d7

Please sign in to comment.