-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dap): remove unnecessary intermediate type (#8018)
We have the following type: ```ocaml type t = | File of Path.t | Glob of Path.t * Glob.t ``` That is exactly the same type as what we use to represent dune-action-plugin dependencies except it uses typed paths [Path.t] instead of raw strings like the dune-action-plugin It was used as an intermediate stage when converting DAP dependencies into dune dependencies. So previously, the conversions would go as: ``` DAP with string paths -> DAP with Path.t -> Dep.Set.t ``` The intermediate stage is unnecessary, and now we just convert: ``` DAP with string paths -> Dep.Set.t ``` The new code is both shorter, simpler, and faster. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
1 changed file
with
21 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters