Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Jun 17, 2024
1 parent 9ed1d39 commit bfbccf2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler/lib/js_output.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1980,11 +1980,7 @@ let program ?(accept_unnamed_var = false) f ?source_map p =
| Some sm ->
let sources = hashtbl_to_list files in
let names = hashtbl_to_list names in
let sources_contents =
let open Option.Syntax in
let* r = contents in
Option.return (List.rev !r)
in
let sources_contents = Option.map ~f:(fun x -> List.rev !x) contents in
let sources =
List.map sources ~f:(fun filename ->
match Builtins.find filename with
Expand Down

0 comments on commit bfbccf2

Please sign in to comment.