Skip to content

Commit aa20601

Browse files
JS-1731 Fix S6551 loop helper typing
1 parent b579677 commit aa20601

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/analysis/src/jsts/rules/S6551/decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ function getLoopAncestors(node: TSESTree.Node, boundary: TSESTree.Statement): TS
425425
const loops: TSESTree.Node[] = [];
426426
let current: TSESTree.Node | undefined = node;
427427
while (current && current !== boundary) {
428-
const parent = current.parent;
428+
const parent: TSESTree.Node | undefined = current.parent;
429429
if (!parent) {
430430
break;
431431
}

0 commit comments

Comments
 (0)