Skip to content

Commit d94816a

Browse files
committed
use the new API
1 parent ee5f733 commit d94816a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jscomp/core/js_dump.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,9 +1225,7 @@ and brace_block cxt f b =
12251225
and statements top cxt f b =
12261226
iter_lst cxt f b
12271227
(fun cxt f s -> statement top cxt f s)
1228-
(if top then (fun f ->
1229-
P.newline f;
1230-
P.force_newline f)
1228+
(if top then P.at_least_two_lines
12311229
else P.newline)
12321230

12331231
let string_of_block (block : J.block) =

0 commit comments

Comments
 (0)