Skip to content

Commit

Permalink
Stop using polymorphic comparison to remove repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Nov 28, 2024
1 parent 5d559b4 commit 3e067c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,10 @@ let repository cli =
`Ok ()
| Some `remove, names ->
let names = List.map OpamRepositoryName.of_string names in
let rm = List.filter (fun n -> not (List.mem n names)) in
let rm =
List.filter (fun n ->
not (List.exists (OpamRepositoryName.equal n) names))
in
let full_wipe = List.mem `All scope in
let global = global || full_wipe in
let gt =
Expand Down

0 comments on commit 3e067c3

Please sign in to comment.