Skip to content

Commit 9fd92a7

Browse files
Leonidas-from-XIVsabine
authored andcommitted
Reformat all code with current OCamlformat settings (#543)
The CI keeps failing because ocamlformat wants to reformat the branches. This PR applies that formatting which should help keep CI consistently succeeding.
1 parent 8fdea07 commit 9fd92a7

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

src/ocamlorg_package/lib/opam_repository.mli

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ val new_files_since : a:string -> b:string -> (Fpath.t * string) list Lwt.t
3232
first. *)
3333

3434
val create_package_to_timestamp : unit -> float OpamPackage.Map.t Lwt.t
35-
(** Creates a map of package to timestamp, where the timestamp is the first commit of the package's opam file. *)
35+
(** Creates a map of package to timestamp, where the timestamp is the first
36+
commit of the package's opam file. *)

src/ocamlorg_web/lib/graphql.ml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ let package_versions_result name from upto t =
9696

9797
let info =
9898
Graphql_lwt.Schema.(
99-
obj "info" ~fields:(
99+
obj "info"
100+
~fields:
100101
[
101102
field "name" ~doc:"Unique dependency name"
102103
~args:Arg.[]
@@ -106,11 +107,12 @@ let info =
106107
~args:Arg.[]
107108
~typ:string
108109
~resolve:(fun _ (i : package_info) -> i.constraints);
109-
]))
110+
])
110111

111112
let owners =
112113
Graphql_lwt.Schema.(
113-
obj "owners" ~fields:(
114+
obj "owners"
115+
~fields:
114116
[
115117
field "name" ~doc:"Owner's name"
116118
~args:Arg.[]
@@ -128,11 +130,12 @@ let owners =
128130
~args:Arg.[]
129131
~typ:string
130132
~resolve:(fun _ user -> user.Ood.Opam_user.avatar);
131-
]))
133+
])
132134

133135
let url =
134136
Graphql_lwt.Schema.(
135-
obj "url" ~fields:(
137+
obj "url"
138+
~fields:
136139
[
137140
field "uri" ~doc:"Package URI"
138141
~args:Arg.[]
@@ -142,11 +145,12 @@ let url =
142145
~args:Arg.[]
143146
~typ:(non_null (list (non_null string)))
144147
~resolve:(fun _ p -> p.Package.Info.checksum);
145-
]))
148+
])
146149

147150
let package =
148151
Graphql_lwt.Schema.(
149-
obj "package" ~fields:(
152+
obj "package"
153+
~fields:
150154
[
151155
field "name" ~doc:"Unique package name"
152156
~args:Arg.[]
@@ -238,11 +242,12 @@ let package =
238242
~resolve:(fun _ p ->
239243
let info = Package.info p in
240244
info.Package.Info.publication);
241-
]))
245+
])
242246

243247
let packages_result =
244248
Graphql_lwt.Schema.(
245-
obj "allPackages" ~fields:(
249+
obj "allPackages"
250+
~fields:
246251
[
247252
field "totalPackages" ~doc:"total number of packages"
248253
~args:Arg.[]
@@ -252,7 +257,7 @@ let packages_result =
252257
~args:Arg.[]
253258
~typ:(non_null (list (non_null package)))
254259
~resolve:(fun _ p -> p.packages);
255-
]))
260+
])
256261

257262
let schema t : Dream.request Graphql_lwt.Schema.schema =
258263
Graphql_lwt.Schema.(

0 commit comments

Comments
 (0)