Skip to content

Commit

Permalink
Remove moot variable
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed May 12, 2023
1 parent 83bbb34 commit 8cebf82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ function isImportStatement(node) {

if (atKeyword.content.length === 0) return false;

const importKeyword = atKeyword.content[0];

return ['ident', 'import'].includes(importKeyword.type);
return ['ident', 'import'].includes(atKeyword.content[0].type);
}

function extractDependencies(importStatementNode) {
Expand Down

0 comments on commit 8cebf82

Please sign in to comment.