aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-15 20:58:30 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-15 20:58:30 +0800
commit126048bac9f52871b841d9898cabe7cfd265ebb6 (patch)
treebcb2d17aeeaa4a99482bdf8e8a41758f02fd4ee4 /packages/tslint-config
parent274aa50d740e4f3af9e3d50468843ed19b555aa3 (diff)
downloaddexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.gz
dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.tar.zst
dexon-sol-tools-126048bac9f52871b841d9898cabe7cfd265ebb6.zip
Fix connect unused vars
Diffstat (limited to 'packages/tslint-config')
-rw-r--r--packages/tslint-config/rules/walkers/async_suffix.ts1
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(