Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 0dab2d1

Browse files
mununkicristianoc
authored andcommitted
clean up and comment
1 parent a2daadb commit 0dab2d1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cli/reactjs_jsx_v4.ml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,8 @@ let recordFromProps ~loc ~removeKey callArguments =
216216
pexp_loc = loc;
217217
pexp_attributes = [];
218218
}
219-
| _, [spreadProps] ->
220-
{
221-
pexp_desc = Pexp_record (fields, Some spreadProps);
222-
pexp_loc = loc;
223-
pexp_attributes = [];
224-
}
219+
| _, [spreadProps]
220+
(* take the first spreadProps only *)
225221
| _, spreadProps :: _ ->
226222
{
227223
pexp_desc = Pexp_record (fields, Some spreadProps);

0 commit comments

Comments
 (0)