mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: simplify usage of Chroot.f
Rely on currying, and avoid extra helper functions. No behaviour changes.
This commit is contained in:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user