Skip to content

Commit

Permalink
Update src/detectors/typeChecker/FileLinter.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Merlin Beutlberger <[email protected]>
  • Loading branch information
d3xter666 and RandomByte authored Mar 22, 2024
1 parent faaa769 commit 13abc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detectors/typeChecker/FileLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default class FileLinter {
const nodeExp = (ts.isPropertyAccessExpression(node.expression) ||
ts.isElementAccessExpression(node.expression)) && node.expression;
const nodeType = nodeExp && this.#checker.getTypeAtLocation(nodeExp);
if (!nodeType || nodeType.symbol?.getName() !== "init") {
if (!nodeType?.symbol || nodeType.symbol.getName() !== "init") {

Check failure on line 259 in src/detectors/typeChecker/FileLinter.ts

View workflow job for this annotation

GitHub Actions / General checks, tests and coverage reporting

Unsafe call of an `any` typed value

Check failure on line 259 in src/detectors/typeChecker/FileLinter.ts

View workflow job for this annotation

GitHub Actions / General checks, tests and coverage reporting

Unsafe member access .getName on an `any` value
return;
}

Expand Down

0 comments on commit 13abc7f

Please sign in to comment.