File tree Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -521,17 +521,13 @@ and compile_cases ~is_tag cxt switch_exp table default names =
521
521
match names with
522
522
| None -> None
523
523
| Some {Lam. blocks; consts} ->
524
- match (if is_tag then blocks.(i) else consts.(i)) with
525
- | s -> Some s
526
- | exception Invalid_argument _ -> Some " Unknown" )
524
+ Some (if is_tag then blocks.(i) else consts.(i)))
527
525
(fun i ->
528
526
let comment =
529
527
match names with
530
528
| None -> None
531
529
| Some {Lam. blocks; consts} ->
532
- match (if is_tag then blocks.(i) else consts.(i)) with
533
- | s -> Some s
534
- | exception Invalid_argument _ -> Some " Unknown" in
530
+ Some (if is_tag then blocks.(i) else consts.(i)) in
535
531
{(E. small_int i) with comment})
536
532
E. int_equal
537
533
cxt
Original file line number Diff line number Diff line change @@ -111197,17 +111197,13 @@ and compile_cases ~is_tag cxt switch_exp table default names =
111197
111197
match names with
111198
111198
| None -> None
111199
111199
| Some {Lam.blocks; consts} ->
111200
- match (if is_tag then blocks.(i) else consts.(i)) with
111201
- | s -> Some s
111202
- | exception Invalid_argument _ -> Some "Unknown")
111200
+ Some (if is_tag then blocks.(i) else consts.(i)))
111203
111201
(fun i ->
111204
111202
let comment =
111205
111203
match names with
111206
111204
| None -> None
111207
111205
| Some {Lam.blocks; consts} ->
111208
- match (if is_tag then blocks.(i) else consts.(i)) with
111209
- | s -> Some s
111210
- | exception Invalid_argument _ -> Some "Unknown" in
111206
+ Some (if is_tag then blocks.(i) else consts.(i)) in
111211
111207
{(E.small_int i) with comment})
111212
111208
E.int_equal
111213
111209
cxt
Original file line number Diff line number Diff line change @@ -102311,17 +102311,13 @@ and compile_cases ~is_tag cxt switch_exp table default names =
102311
102311
match names with
102312
102312
| None -> None
102313
102313
| Some {Lam.blocks; consts} ->
102314
- match (if is_tag then blocks.(i) else consts.(i)) with
102315
- | s -> Some s
102316
- | exception Invalid_argument _ -> Some "Unknown")
102314
+ Some (if is_tag then blocks.(i) else consts.(i)))
102317
102315
(fun i ->
102318
102316
let comment =
102319
102317
match names with
102320
102318
| None -> None
102321
102319
| Some {Lam.blocks; consts} ->
102322
- match (if is_tag then blocks.(i) else consts.(i)) with
102323
- | s -> Some s
102324
- | exception Invalid_argument _ -> Some "Unknown" in
102320
+ Some (if is_tag then blocks.(i) else consts.(i)) in
102325
102321
{(E.small_int i) with comment})
102326
102322
E.int_equal
102327
102323
cxt
You can’t perform that action at this time.
0 commit comments