Skip to content

Commit bdfa131

Browse files
committed
indent
1 parent 892e51c commit bdfa131

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jscomp/ml/typedecl.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,16 +396,16 @@ let transl_declaration env sdecl id =
396396
let tcstrs, cstrs = List.split (List.map make_cstr scstrs) in
397397
Ttype_variant tcstrs, Type_variant cstrs
398398
| Ptype_record lbls ->
399-
let hasOptional attrs = Ext_list.exists attrs (fun ({txt },_) -> txt = "optional") in
400-
let optionalLabels =
401-
Ext_list.filter_map lbls
402-
(fun lbl -> if hasOptional lbl.pld_attributes then Some lbl.pld_name.txt else None) in
399+
let has_optional attrs = Ext_list.exists attrs (fun ({txt },_) -> txt = "optional") in
400+
let optionalLabels =
401+
Ext_list.filter_map lbls
402+
(fun lbl -> if has_optional lbl.pld_attributes then Some lbl.pld_name.txt else None) in
403403
let lbls =
404404
if optionalLabels = [] then lbls
405405
else Ext_list.map lbls (fun lbl ->
406406
let typ = lbl.pld_type in
407407
let typ =
408-
if hasOptional lbl.pld_attributes then
408+
if has_optional lbl.pld_attributes then
409409
{typ with ptyp_desc = Ptyp_constr ({txt = Lident "option"; loc=typ.ptyp_loc}, [typ])}
410410
else typ in
411411
{lbl with pld_type = typ }) in

0 commit comments

Comments
 (0)