Skip to content

Commit

Permalink
remove uneeded type
Browse files Browse the repository at this point in the history
  • Loading branch information
PizieDust committed Jan 13, 2025
1 parent f8deb13 commit 747d845
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions builder_web.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type o_diff = {
}

type duniverse = { name : string; value_ : string }
type duniverse_detailed_diff = { name : string }

type package_diff = {
left_packages : package list;
Expand All @@ -39,7 +38,7 @@ type package_diff = {
type duniverse_diff = {
left : duniverse list;
right : duniverse list;
detailed_diff : duniverse_detailed_diff list;
detailed_diff : string list;
}

type opam_diff = {
Expand Down Expand Up @@ -71,7 +70,7 @@ let list_of_json parse_fn json =
let duniverse_detailed_diff_of_json = function
| `Assoc xs -> (
match Utils.Json.(get "name" xs) with
| Some (`String name) -> Ok { name }
| Some (`String name) -> Ok name
| _ ->
Error
(`Msg
Expand Down
4 changes: 1 addition & 3 deletions unikernel_update.ml
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,7 @@ let unikernel_update_layout unikernel current_time
div
~a:[ a_class [ "flex gap-4" ] ]
(List.map
(fun (package :
Builder_web.duniverse_detailed_diff) ->
p [ txt package.name ])
(fun (package : string) -> p [ txt package ])
build_comparison.opam_diff.duniverse_diff
.detailed_diff);
];
Expand Down

0 comments on commit 747d845

Please sign in to comment.