Skip to content

Commit

Permalink
format with ocamlformat 0.26.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Nogueira committed Jul 23, 2024
1 parent 58a9dee commit 5b405f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,8 @@ module Realpath = struct
Lwt_io.printl (show_path (Path.abs (Storage.Secrets.agefile_of_name secret_name))))
else if Path.is_directory abs_path then (
let str = show_path abs_path in
if Path.is_dot (Path.build_rel_path (show_path path)) then Lwt_io.printl (Lazy.force Storage.Secrets.base_dir ^ "/")
if Path.is_dot (Path.build_rel_path (show_path path)) then
Lwt_io.printl (Lazy.force Storage.Secrets.base_dir ^ "/")
else Lwt_io.printl (str ^ if String.ends_with ~suffix:"/" str then "" else "/"))
else Lwt_io.eprintf "W: real path of secret/folder %S not found\n" (show_path path))
Expand Down Expand Up @@ -1218,7 +1219,8 @@ module Who = struct
in
[ Age.Key.inject "" ]
with exn ->
Devkit.printfn "E: couldn't retrieve recipients for group %s. Reason: %s" recipient_name (Printexc.to_string exn);
Devkit.printfn "E: couldn't retrieve recipients for group %s. Reason: %s" recipient_name
(Printexc.to_string exn);
[]
in
(match recipient_keys with
Expand Down
2 changes: 1 addition & 1 deletion lib/storage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ open Printf
module Action = Devkit.Action
module Stre = Devkit.Stre

let (!!) = Lazy.force
let ( !! ) = Lazy.force

module Secret_name = struct
include Devkit.Fresh (String) ()
Expand Down

0 comments on commit 5b405f5

Please sign in to comment.