Skip to content

Commit

Permalink
refactor(pkg): quick simplification (#9844)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg authored Jan 26, 2024
1 parent f79440e commit 07ba176
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dune_pkg/opam_repo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ let all_package_versions t opam_package_name =

let load_all_versions ts opam_package_name =
let from_git, from_dirs =
List.map ts ~f:(fun t ->
List.concat_map ts ~f:(fun t ->
all_package_versions t opam_package_name |> List.rev_map ~f:(fun pkg -> t, pkg))
|> List.concat
|> List.fold_left ~init:OpamPackage.Version.Map.empty ~f:(fun acc (repo, pkg) ->
let version =
let pkg =
Expand Down

0 comments on commit 07ba176

Please sign in to comment.