Skip to content

Commit 3c485b9

Browse files
committed
indent
1 parent f49f4a6 commit 3c485b9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

jscomp/core/lam_compile_external_obj.ml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@ let assemble_obj_args (labels : External_arg_spec.obj_params) (args : J.express
7171
let (accs, eff, assign) as r = aux labels args in
7272
Js_of_lam_option.destruct_optional arg
7373
~for_sure_none:r
74-
~for_sure_some:(fun x -> let acc, new_eff = Lam_compile_external_call.ocaml_to_js_eff
75-
~arg_label:Arg_label ~arg_type:obj_arg_type x in
76-
begin match acc with
77-
| Splice2 _
78-
| Splice0 -> assert false
79-
| Splice1 x ->
80-
(Js_op.Lit label, x) :: accs , Ext_list.append new_eff eff , assign
81-
end )
74+
~for_sure_some:(fun x ->
75+
let acc, new_eff = Lam_compile_external_call.ocaml_to_js_eff
76+
~arg_label:Arg_label ~arg_type:obj_arg_type x in
77+
begin match acc with
78+
| Splice2 _
79+
| Splice0 -> assert false
80+
| Splice1 x ->
81+
(Js_op.Lit label, x) :: accs , Ext_list.append new_eff eff , assign
82+
end )
8283
~not_sure:(fun _ -> accs, eff , (arg_kind,arg)::assign )
8384
| {obj_arg_label = Obj_empty | Obj_label _ | Obj_optional _ } :: _ , [] -> assert false
8485
| [], _ :: _ -> assert false

0 commit comments

Comments
 (0)