Skip to content

Commit

Permalink
remove useless type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
swandir committed Mar 30, 2022
1 parent 7db9378 commit 1cc2a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/path/introspection.ts
Expand Up @@ -182,7 +182,7 @@ export function referencesImport(
if (!this.isReferencedIdentifier()) {
if (
(this.isJSXMemberExpression() &&
(this.node.property as t.JSXIdentifier).name === importName) ||
this.node.property.name === importName) ||
((this.isMemberExpression() || this.isOptionalMemberExpression()) &&
(this.node.computed
? isStringLiteral(this.node.property, { value: importName })
Expand Down

0 comments on commit 1cc2a3e

Please sign in to comment.