mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:19:30 -06:00
Fix trailing whitespace in esnext.ts
Co-authored-by: weswigham <2932786+weswigham@users.noreply.github.com>
This commit is contained in:
parent
957cf79304
commit
88c9bfa639
@ -319,7 +319,7 @@ export function transformESNext(context: TransformationContext): (x: SourceFile
|
||||
// Wrap the original loop body in an additional block scope to handle shadowing
|
||||
// Don't create an extra block if the original statement is empty or contains only empty statements
|
||||
const isEmptyBlock = isBlock(node.statement) && (
|
||||
node.statement.statements.length === 0 ||
|
||||
node.statement.statements.length === 0 ||
|
||||
node.statement.statements.every(stmt => stmt.kind === SyntaxKind.EmptyStatement)
|
||||
);
|
||||
const shouldWrapInBlock = !isEmptyBlock;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user