Skip to content

Commit

Permalink
#45 react-i18next Trans support: annotation & code to translation ref…
Browse files Browse the repository at this point in the history
…erence
  • Loading branch information
nyavro committed Aug 22, 2020
1 parent 62c2716 commit 5ea6ff6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class ReactUseTranslationHookExtractor: KeyExtractor {
private fun resolveHook(literal: PsiElement): JSCallExpression? {
return resolveTranslationFunctionDefinition(literal)
?.let { resolveDestructuringElement(it) }
?.let { it.initializer as JSCallExpression}
?.let { it.initializer as? JSCallExpression}
}
}

0 comments on commit 5ea6ff6

Please sign in to comment.