Skip to content

Commit 90e344e

Browse files
committed
Fix linter warning
1 parent fb9806b commit 90e344e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11709,7 +11709,7 @@ namespace ts {
1170911709
}
1171011710
if (types.length === 0) {
1171111711
// For an async function, the return type will not be void, but rather a Promise for void.
11712-
return isAsync ? createPromiseReturnType(func, voidType): voidType;
11712+
return isAsync ? createPromiseReturnType(func, voidType) : voidType;
1171311713
}
1171411714
}
1171511715
// When yield/return statements are contextually typed we allow the return type to be a union type.

0 commit comments

Comments
 (0)