Fix linter warning

This commit is contained in:
Ron Buckton 2016-06-15 17:59:02 -07:00
parent fb9806b5f9
commit 90e344e457

View file

@ -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.