aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/Path.ml
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-10-10 02:17:58 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-10-10 02:17:58 +0000
commit90e41279094c26e6fcc93966708374b8ceba80e4 (patch)
tree1b3dbf67da6655bc3458f7a4f1f2595c0e197d16 /lib/kernel/Path.ml
parent6201bbc6e7171f037467bbfc2d0a6da084fb516c (diff)
downloadRNT-lifecycle-ergonomics.tar.gz
RNT-lifecycle-ergonomics.zip
Diffstat (limited to '')
-rw-r--r--lib/kernel/Path.ml8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/kernel/Path.ml b/lib/kernel/Path.ml
index a2e270e..2e712cc 100644
--- a/lib/kernel/Path.ml
+++ b/lib/kernel/Path.ml
@@ -23,8 +23,7 @@ let walking f g handle path =
let open Protocols in
let open Utilities.Result in
let rec walk handle = function
- | [] ->
- g (Handle.keep handle)
+ | [] -> g (Handle.keep handle)
| x :: xs -> (
let* dir =
Handle.require Directory.from handle
@@ -36,11 +35,10 @@ let walking f g handle path =
| None -> Error (Error.path_not_found path)
| Some elem -> f x handle (fun () -> walk elem xs) )
in
- Handle.with_autorelease
- (fun () ->
+ Handle.with_autorelease (fun () ->
walk handle path
|> Result.map_error
- Concepts.Condition.(complement ("path" |=| Concepts.Value.String (to_string path))))
+ Concepts.Condition.(complement ("path" |=| Concepts.Value.String (to_string path))) )
let lookup handle path = walking (fun _ _ f -> f ()) Result.ok handle path