Skip to content

Commit

Permalink
Add missing break after if-then-else keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetiot committed Jan 16, 2024
1 parent ed6a4cb commit 234feff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Params.ml
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,7 @@ let get_if_then_else (c : Conf.t) ~first ~last ~parens_bch ~parens_prev_bch
( fmt_or_k first
(str "if" $ fmt_opt fmt_extension_suffix)
(str "else if")
$ fmt_attributes
$ fmt_or (Option.is_some fmt_extension_suffix) "@ " " "
$ fmt_cond xcnd )
$ fmt_attributes $ fmt "@ " $ fmt_cond xcnd )
$ fmt "@ " )
; box_keyword_and_expr=
(fun k -> hvbox 2 (fmt_or (Option.is_some xcond) "then" "else" $ k))
Expand Down

0 comments on commit 234feff

Please sign in to comment.