Fix connect unused vars

This commit is contained in:
Leonid Logvinov
2017-12-15 13:58:30 +01:00
parent 274aa50d74
commit 126048bac9
24 changed files with 8 additions and 54 deletions

View File

@@ -9,6 +9,7 @@ export class AsyncSuffixWalker extends Lint.RuleWalker {
const methodName = methodNameNode.getText();
if (!_.isUndefined(node.type)) {
if (node.type.kind === ts.SyntaxKind.TypeReference) {
// tslint:disable-next-line:no-unnecessary-type-assertion
const returnTypeName = (node.type as ts.TypeReferenceNode).typeName.getText();
if (returnTypeName === 'Promise' && !methodName.endsWith('Async')) {
const failure = this.createFailure(