Skip to content

Commit

Permalink
refactor: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Mar 25, 2024
1 parent 00ba4ad commit e5925c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detectors/typeChecker/FileLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ export default class FileLinter {
analyzeLibInitCall(node: ts.CallExpression) {
const nodeExp = (
ts.isIdentifier(node.expression) || // Assignment `const LibInit = Library.init` and destructuring
ts.isPropertyAccessExpression(node.expression) ||
ts.isElementAccessExpression(node.expression)) && node.expression;
ts.isPropertyAccessExpression(node.expression) || /* Lib.init() */
ts.isElementAccessExpression(node.expression) /* Lib["init"]() */) && node.expression;
const nodeType = nodeExp && this.#checker.getTypeAtLocation(nodeExp);
if (!nodeType || !nodeType.symbol || nodeType.symbol.getName() !== "init") {
return;
Expand Down

0 comments on commit e5925c0

Please sign in to comment.