Skip to content

Commit 6cdc49e

Browse files
committed
format
1 parent beedf90 commit 6cdc49e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jscomp/ml/variant_coercion.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ let can_coerce_variant ~(path : Path.t)
4343
let can_try_coerce_variant_to_primitive
4444
((_, p, typedecl) : Path.t * Path.t * Types.type_declaration) =
4545
match typedecl with
46-
| {type_kind = Type_variant constructors; type_params=[]} when Path.name p <> "bool"-> Some constructors
46+
| {type_kind = Type_variant constructors; type_params = []}
47+
when Path.name p <> "bool" ->
48+
Some constructors
4749
| _ -> None
4850

4951
let variant_representation_matches (c1_attrs : Parsetree.attributes)

0 commit comments

Comments
 (0)