Skip to content

Commit

Permalink
generated JS: improve indentation of switch cases
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jan 14, 2025
1 parent 8ec534d commit bbbc80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jscomp/core/js_dump.ml
Original file line number Diff line number Diff line change
Expand Up @@ -485,15 +485,15 @@ and pp_one_case_clause : 'a. _ -> (_ -> 'a -> unit) -> 'a * J.case_clause -> _ =
(switch_case, ({ switch_body; should_break; comment } : J.case_clause)) ->
let cxt =
group cxt 1 (fun () ->
group cxt 1 (fun () ->
group cxt 0 (fun () ->
string cxt L.case;
space cxt;
pp_comment_option cxt comment;
pp_cond cxt switch_case;
(* could be integer or string *)
space cxt;
string cxt L.colon);
group cxt 1 (fun () ->
group cxt 0 (fun () ->
let cxt =
match switch_body with
| [] -> cxt
Expand Down

0 comments on commit bbbc80e

Please sign in to comment.