Removals of uncommented code and unneccesary parens

This commit is contained in:
rand00 2022-01-28 10:15:38 +01:00 committed by Reynir Björnsson
parent 6f95f7e965
commit 2a1b75ba2b
2 changed files with 2 additions and 9 deletions

View file

@ -3,9 +3,6 @@ module Log = (val Logs.src_log src : Logs.LOG)
open Rresult
(* open Lwt.Syntax
* open Lwt_result.Infix *)
let read_file file =
try
let fh = open_in file in

View file

@ -211,8 +211,6 @@ let add_routes datadir =
get_uuid build >>= fun uuid ->
(
Dream.sql req (Model.build uuid) >>= fun (id, build) ->
(* filepath = bin/caldav.hvt
localpath = caldav-monitoring/<uuid>/output/bin/caldav.hvt in datadir *)
Model.not_found build.Builder_db.Build.main_binary >>= fun main_binary_id ->
Dream.sql req (Model.build_artifact_by_id main_binary_id) >>= fun main_binary ->
let debug_binary_path = Fpath.(base main_binary.Builder_db.filepath + "debug") in
@ -237,10 +235,8 @@ let add_routes datadir =
let _job_name = Dream.param "job" req
and build = Dream.param "build" req in
get_uuid build >>= fun uuid ->
(
let opam_switch_path = Fpath.(v "opam-switch") in
Dream.sql req (Model.build_artifact uuid opam_switch_path)
)
let opam_switch_path = Fpath.(v "opam-switch") in
Dream.sql req (Model.build_artifact uuid opam_switch_path)
|> if_error "Error getting job build"
~log:(fun e -> Log.warn (fun m -> m "Error getting job data: %a" pp_error e))
>>= fun opam_switch ->