Skip to content

Commit

Permalink
Revert "use OpamStd.Option.of_list and wrapping"
Browse files Browse the repository at this point in the history
This reverts commit edfd3a2.
  • Loading branch information
rjbou committed May 3, 2024
1 parent 76d5da7 commit 86ec788
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ let init cli =
"Options --cygwin-location and \
--cygwin-extra-packages are incompatible"
| (`internal | `none), None, pkgs ->
Some (`internal
(OpamStd.Option.to_list pkgs |> List.map OpamSysPkg.of_string))
Some (`internal (OpamStd.Option.default [] pkgs |> List.map OpamSysPkg.of_string))
| (`default_location | `none), Some dir, None -> Some (`location dir)
| (`default_location | `no) as setup, None, None -> Some setup
in
Expand Down

0 comments on commit 86ec788

Please sign in to comment.