Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions res_syntax/src/reactjs_jsx_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ let getMapper ~config =
| Psig_attribute attr -> processConfigAttribute attr config
| _ -> ());
let item = default_mapper.signature_item mapper item in
if config.version = 3 then transformSignatureItem3 mapper item
else if config.version = 4 then transformSignatureItem4 mapper item
if config.version = 3 then transformSignatureItem3 item
else if config.version = 4 then transformSignatureItem4 item
else [item])
items
|> List.flatten
Expand Down
2 changes: 1 addition & 1 deletion res_syntax/src/reactjs_jsx_v3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ let jsxMapper ~config =
| _ -> [item]
in

let transformSignatureItem _mapper item =
let transformSignatureItem item =
match item with
| {
psig_loc;
Expand Down
Loading