Skip to content

Commit

Permalink
refactor: prefer find method (#6693)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Feb 6, 2024
1 parent bee93f8 commit d93a4ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getStandaloneBootstrapFunction(path: string): CallExpression | n
path,
)
.map(ref => ref.getParent())
.filter(node => Node.isCallExpression(node))[0];
.find(node => Node.isCallExpression(node));

const standaloneBootstrapFunction = standaloneBootstrapIdentifier as CallExpression;

Expand Down

0 comments on commit d93a4ac

Please sign in to comment.