Skip to content

Commit c251444

Browse files
committed
remove-asserts.ts: replace createEmptyStatement() with createOmittedExpression()
1 parent 87fef34 commit c251444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/scripts/remove-asserts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RemoveAsserts {
6464
) {
6565
const method = declaration.name!.text;
6666
if (method === 'debugAssert') {
67-
updatedNode = ts.createEmptyStatement();
67+
updatedNode = ts.createOmittedExpression();
6868
} else if (method === 'hardAssert') {
6969
// Remove the log message but keep the assertion
7070
updatedNode = ts.createCall(

0 commit comments

Comments
 (0)