Skip to content

Commit

Permalink
index.js: use array spread instead of concat
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 19, 2023
1 parent b8a70e1 commit ea5be27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ function precinct(content, options = {}) {
}

function detectiveEs6Cjs(ast, detectiveOptions) {
return detectiveEs6(ast, detectiveOptions).concat(detectiveCjs(ast, detectiveOptions));
return [
...detectiveEs6(ast, detectiveOptions),
...detectiveCjs(ast, detectiveOptions)
];
}

/**
Expand Down

0 comments on commit ea5be27

Please sign in to comment.