File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments