daemon: simplify usage of Chroot.f

Rely on currying, and avoid extra helper functions.

No behaviour changes.
This commit is contained in:
Pino Toscano
2017-10-17 12:33:32 +02:00
parent f87f254b2b
commit 840ac44c9b
2 changed files with 11 additions and 11 deletions

View File

@@ -84,7 +84,7 @@ and get_windows_systemroot () =
and get_windows_systemroot_from_boot_ini boot_ini_path =
let chroot = Chroot.create ~name:"get_windows_systemroot_from_boot_ini" () in
let lines = Chroot.f chroot (fun () -> read_small_file boot_ini_path) () in
let lines = Chroot.f chroot read_small_file boot_ini_path in
match lines with
| None -> None
| Some lines ->