Skip to content

Commit 3712b8f

Browse files
crisbetojelbourn
authored andcommitted
chore: fix lint failure (#16008)
Fixes a lint failure due to a lint rule that got merged in together with a bunch of other code.
1 parent 43b4fec commit 3712b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/tslint-rules/noUndecoratedBaseClassDiRule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class Rule extends Lint.Rules.TypedRule {
2020

2121
class Walker extends Lint.RuleWalker {
2222
constructor(
23-
sourceFile: ts.SourceFile, options: Lint.IOptions, private typeChecker: ts.TypeChecker) {
23+
sourceFile: ts.SourceFile, options: Lint.IOptions, private _typeChecker: ts.TypeChecker) {
2424
super(sourceFile, options);
2525
}
2626

@@ -69,7 +69,7 @@ class Walker extends Lint.RuleWalker {
6969
if (!baseTypes || baseTypes.length !== 1) {
7070
return null;
7171
}
72-
const symbol = this.typeChecker.getTypeAtLocation(baseTypes[0]).getSymbol();
72+
const symbol = this._typeChecker.getTypeAtLocation(baseTypes[0]).getSymbol();
7373
if (!symbol || !ts.isClassDeclaration(symbol.valueDeclaration)) {
7474
return null;
7575
}

0 commit comments

Comments
 (0)