Skip to content

Commit

Permalink
fix(subject-suffix): Use identifier type.
Browse files Browse the repository at this point in the history
Closes #88.
  • Loading branch information
cartant committed Mar 26, 2019
1 parent c65f727 commit e5ff225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rules/rxjsSuffixSubjectsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Rule extends Lint.Rules.TypedRule {
}

identifiers.forEach(identifier => {
const type = typeChecker.getTypeAtLocation(identifier.parent);
const type = typeChecker.getTypeAtLocation(identifier);
const text = identifier.getText();
if (!suffixRegex.test(text) && couldBeType(type, "Subject")) {
for (let i = 0; i < types.length; ++i) {
Expand Down

0 comments on commit e5ff225

Please sign in to comment.