Skip to content

Commit 9a4d977

Browse files
committed
Dump else on the same line as the closing curly
Signed-Off-By: Josh Abernathy <joshaber@gmail.com>
1 parent 157bb60 commit 9a4d977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: jscomp/core/js_dump.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1352,12 +1352,12 @@ and statement_desc top cxt f (s : J.statement_desc) : Ext_pp_scope.t =
13521352
| Some [{statement_desc = If _} as nest]
13531353
| Some [{statement_desc = Block [ {statement_desc = If _ ; _} as nest] ; _}]
13541354
->
1355-
P.newline f;
1355+
P.space f;
13561356
P.string f L.else_;
13571357
P.space f;
13581358
statement false cxt f nest
13591359
| Some s2 ->
1360-
P.newline f;
1360+
P.space f;
13611361
P.string f L.else_;
13621362
P.space f ;
13631363
block cxt f s2

0 commit comments

Comments
 (0)