Skip to content

Commit

Permalink
refactor: annotate ignored type (#11351)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Jan 19, 2025
1 parent caa0a81 commit 39afc8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dune_pkg/opam_solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,10 @@ module Solver = struct
the optional dependency. We don't need to do this explicitly in
the [essential] case, because we must select a good version and we can't
select two. *)
(try S.at_most_one sat (user_var :: fail) |> ignore with
(try
let (_ : S.at_most_one_clause) = S.at_most_one sat (user_var :: fail) in
()
with
| Invalid_argument reason ->
(* Explicitly conflicts with itself! *)
S.at_least_one sat [ S.neg user_var ] ~reason)
Expand Down

0 comments on commit 39afc8a

Please sign in to comment.