aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules/walkers/async_suffix.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tslint-config/rules/walkers/async_suffix.ts')
-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(