diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 20:58:30 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 20:58:30 +0800 |
commit | 126048bac9f52871b841d9898cabe7cfd265ebb6 (patch) | |
tree | bcb2d17aeeaa4a99482bdf8e8a41758f02fd4ee4 /packages/tslint-config/rules | |
parent | 274aa50d740e4f3af9e3d50468843ed19b555aa3 (diff) | |
download | dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.gz dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.bz2 dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.lz dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.xz dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.zst dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.zip |
Fix connect unused vars
Diffstat (limited to 'packages/tslint-config/rules')
-rw-r--r-- | packages/tslint-config/rules/walkers/async_suffix.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/tslint-config/rules/walkers/async_suffix.ts b/packages/tslint-config/rules/walkers/async_suffix.ts index 0c89bd99f..7fa7a78b8 100644 --- a/packages/tslint-config/rules/walkers/async_suffix.ts +++ b/packages/tslint-config/rules/walkers/async_suffix.ts @@ -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( |