Skip to content

Commit 3a77d83

Browse files
committed
rename variable
1 parent ac92fea commit 3a77d83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/angular/ngWalker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class NgWalker extends Lint.RuleWalker {
175175
protected visitNgPipe(controller: ts.ClassDeclaration, decorator: ts.Decorator) {
176176
}
177177

178-
protected visitNgInjectable(controller: ts.ClassDeclaration, decorator: ts.Decorator) {
178+
protected visitNgInjectable(classDeclaration: ts.ClassDeclaration, decorator: ts.Decorator) {
179179
}
180180

181181
protected visitNgInput(property: ts.PropertyDeclaration, input: ts.Decorator, args: string[]) {

src/decoratorNotAllowedRule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export class ClassMetadataWalker extends NgWalker {
3939
super(sourceFile, rule.getOptions());
4040
}
4141

42-
visitNgInjectable(controller: ts.ClassDeclaration, decorator: ts.Decorator) {
43-
this.className = controller.name.text;
42+
visitNgInjectable(classDeclaration: ts.ClassDeclaration, decorator: ts.Decorator) {
43+
this.className = classDeclaration.name.text;
4444
this.isInjectable = true;
4545
}
4646

0 commit comments

Comments
 (0)