From 90e344e457ba78d5a6579ec7f2690d6d45ce9fdb Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 15 Jun 2016 17:59:02 -0700 Subject: [PATCH] Fix linter warning --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 09792cbbdf9..e18c163b142 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -11709,7 +11709,7 @@ namespace ts { } if (types.length === 0) { // For an async function, the return type will not be void, but rather a Promise for void. - return isAsync ? createPromiseReturnType(func, voidType): voidType; + return isAsync ? createPromiseReturnType(func, voidType) : voidType; } } // When yield/return statements are contextually typed we allow the return type to be a union type.