Skip to content

Commit 0eeaafe

Browse files
committed
reformat
1 parent 7066f6b commit 0eeaafe

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

compiler/lib/js_output.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ let program ?(accept_unnamed_var = false) ?(source_map = false) f p =
21012101
PP.set_needed_space_function f need_space;
21022102
(match Config.effects () with
21032103
| `Cps | `Double_translation -> PP.set_adjust_indentation_function f (fun n -> n mod 40)
2104-
| `Disabled | `Jspi | exception Failure _ -> ());
2104+
| `Disabled | `Jspi | (exception Failure _) -> ());
21052105
PP.start_group f 0;
21062106
O.program f p;
21072107
PP.end_group f;

compiler/tests-compiler/lambda_lifting.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ Printf.printf "%d\n" (f 3)
1616
in
1717
Util.compile_and_run ~effects:`Cps ~flags prog;
1818
[%expect {|15 |}];
19-
let program =
20-
Util.compile_and_parse ~effects:`Cps ~flags prog
21-
in
19+
let program = Util.compile_and_parse ~effects:`Cps ~flags prog in
2220
Util.print_program program;
2321
[%expect
2422
{|

compiler/tests-compiler/util/util.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ let compile_to_javascript
300300
[ (if pretty then [ "--pretty" ] else [])
301301
; (if sourcemap then [ "--sourcemap" ] else [])
302302
; (match effects with
303-
| `Double_translation ->
304-
[ "--effects=double-translation" ]
303+
| `Double_translation -> [ "--effects=double-translation" ]
305304
| `Cps -> [ "--effects=cps" ]
306305
| `Disabled -> [])
307306
; (if use_js_string

0 commit comments

Comments
 (0)