We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7c2a6 commit 34a7689Copy full SHA for 34a7689
src/util/shouldIgnoreChain.ts
@@ -22,9 +22,9 @@ function isComplexHandler(path: NodePath<t.Expression> | null): boolean {
22
function hasComplexHandlers(path: NodePath<t.CallExpression>): boolean {
23
for (const link of iterateChain(path)) {
24
if (
25
- isComplexHandler(getThenHandler(path)) ||
26
- isComplexHandler(getCatchHandler(path)) ||
27
- isComplexHandler(getFinallyHandler(path))
+ isComplexHandler(getThenHandler(link)) ||
+ isComplexHandler(getCatchHandler(link)) ||
+ isComplexHandler(getFinallyHandler(link))
28
)
29
return true
30
}
0 commit comments