Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jun 15, 2023
1 parent 9c87f3a commit f67c9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5525,8 +5525,8 @@ function getVariableOrParameterDeclaration(contextToken: Node | undefined, locat
: ((isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent)));
const possiblyVariableDeclaration = findAncestor(location, (node) => {
return isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ?
"quit" : isVariableDeclaration(node)
})
"quit" : isVariableDeclaration(node);
});
return (possiblyVariableDeclaration || possiblyParameterDeclaration) as ParameterDeclaration | TypeParameterDeclaration | VariableDeclaration | undefined;
}

Expand Down

0 comments on commit f67c9a3

Please sign in to comment.