Skip to content

Commit fd12eb4

Browse files
committed
clean up dump
1 parent 517114d commit fd12eb4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jscomp/core/js_dump.ml

+6-6
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ and pp_function ~return_unit ~async ~is_method cxt (f : P.t) ~fn_state
362362
if the function does not capture any variable, then the context is empty
363363
*)
364364
let inner_cxt = Ext_pp_scope.sub_scope outer_cxt set_env in
365-
let param_body b : unit =
365+
let param_body () : unit =
366366
if is_method then (
367367
match l with
368368
| [] -> assert false
@@ -394,24 +394,24 @@ and pp_function ~return_unit ~async ~is_method cxt (f : P.t) ~fn_state
394394
return_sp f;
395395
P.string f (L.function_async ~async);
396396
P.space f;
397-
param_body b
397+
param_body ()
398398
| No_name { single_arg } ->
399399
(* see # 1692, add a paren for annoymous function for safety *)
400400
P.cond_paren_group f (not single_arg) 1 (fun _ ->
401401
P.string f (L.function_async ~async);
402402
P.space f;
403-
param_body b)
403+
param_body ())
404404
| Name_non_top x ->
405405
ignore (pp_var_assign inner_cxt f x : cxt);
406406
P.string f (L.function_async ~async);
407407
P.space f;
408-
param_body b;
408+
param_body ();
409409
semi f
410410
| Name_top x ->
411411
P.string f (L.function_async ~async);
412412
P.space f;
413413
ignore (Ext_pp_scope.ident inner_cxt f x : cxt);
414-
param_body b)
414+
param_body ())
415415
else
416416
(* print our closure as
417417
{[(function(x,y){ return function(..){...}} (x,y))]}
@@ -434,7 +434,7 @@ and pp_function ~return_unit ~async ~is_method cxt (f : P.t) ~fn_state
434434
| Is_return | No_name _ -> ()
435435
| Name_non_top x | Name_top x ->
436436
ignore (Ext_pp_scope.ident inner_cxt f x));
437-
param_body b);
437+
param_body ());
438438
pp_paren_params inner_cxt f lexical;
439439
P.string f L.rparen;
440440
match fn_state with

0 commit comments

Comments
 (0)