File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1212,6 +1212,8 @@ and function_body (cxt : cxt) f (b : J.block) : unit =
1212
1212
: cxt)
1213
1213
| Return { expression_desc = Undefined } -> ()
1214
1214
| _ -> ignore (statement false cxt f s : cxt ))
1215
+ | [ s; { statement_desc = Return { expression_desc = Undefined } } ] ->
1216
+ ignore (statement false cxt f s : cxt )
1215
1217
| s :: r ->
1216
1218
let cxt = statement false cxt f s in
1217
1219
P. newline f;
@@ -1225,8 +1227,7 @@ and brace_block cxt f b =
1225
1227
and statements top cxt f b =
1226
1228
iter_lst cxt f b
1227
1229
(fun cxt f s -> statement top cxt f s)
1228
- (if top then P. at_least_two_lines
1229
- else P. newline)
1230
+ (if top then P. at_least_two_lines else P. newline)
1230
1231
1231
1232
let string_of_block (block : J.block ) =
1232
1233
let buffer = Buffer. create 50 in
You can’t perform that action at this time.
0 commit comments