aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-16 02:03:01 +0800
committerGitHub <noreply@github.com>2017-12-16 02:03:01 +0800
commit3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3 (patch)
tree38a2de1b15985590b879f71fc17cbee35a17ba78 /packages/tslint-config/rules
parentde8c445f961e1a09bed6a01397e36b96e0ea3d9a (diff)
parentc8e52882ca556ea06696a56e312f69284f99aa29 (diff)
downloaddexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.gz
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.bz2
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.lz
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.xz
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.zst
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.zip
Merge pull request #266 from 0xProject/fix/no-unused-vars
Remove all unused vars and imports
Diffstat (limited to 'packages/tslint-config/rules')
-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(