Skip to content

Commit

Permalink
fix: Eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Mar 25, 2024
1 parent 4d3ee61 commit 8f42b6e
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 @@ -226,7 +226,7 @@ export default class FileLinter {
!ts.isElementAccessExpression(node.expression) /* Lib["init"]() */) {
return;
}

const nodeExp = node.expression;
const nodeType = this.#checker.getTypeAtLocation(nodeExp);
if (!nodeType.symbol || nodeType.symbol.getName() !== "init") {
Expand All @@ -239,7 +239,7 @@ export default class FileLinter {
}

const initArg = node?.arguments[0] &&
ts.isObjectLiteralExpression(node.arguments[0]) &&
ts.isObjectLiteralExpression(node.arguments[0]) &&
node.arguments[0];

let nodeToHighlight;
Expand Down

0 comments on commit 8f42b6e

Please sign in to comment.