Skip to content

Commit 8c5d3ee

Browse files
committed
Cleanup
1 parent 9e16cb7 commit 8c5d3ee

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

compiler/syntax/src/jsx_v4.ml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -920,18 +920,18 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
920920
Some
921921
(make_new_binding ~loc:binding_loc ~full_module_name modified_binding)
922922
in
923+
let binding_expr =
924+
{
925+
binding.pvb_expr with
926+
(* moved to wrapper_expr *)
927+
pexp_attributes = [];
928+
}
929+
in
923930
( None,
924931
{
925932
binding with
926933
pvb_attributes = binding.pvb_attributes |> List.filter other_attrs_pure;
927-
pvb_expr =
928-
( binding.pvb_expr |> fun expr ->
929-
{
930-
expr with
931-
(* moved to wrapper_expr *)
932-
pexp_attributes = [];
933-
}
934-
|> constrain_jsx_return ~loc:binding_loc );
934+
pvb_expr = binding_expr |> constrain_jsx_return ~loc:binding_loc;
935935
},
936936
new_binding )
937937
else (None, binding, None)

0 commit comments

Comments
 (0)