aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Cursor.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-09-25 21:51:33 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-09-25 21:51:33 -0300
commit584fbca6d920e9a9f91d451667f9380714ac2175 (patch)
treea163b916a6f8cb550c8b38ceb01ab01558687a40 /lib/protocols/Cursor.ml
parentc7b754e96714eeeb9d315ee3de402d73a27d47db (diff)
downloadRNT-584fbca6d920e9a9f91d451667f9380714ac2175.tar.gz
RNT-584fbca6d920e9a9f91d451667f9380714ac2175.zip
dune fmt
Diffstat (limited to 'lib/protocols/Cursor.ml')
-rw-r--r--lib/protocols/Cursor.ml4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/protocols/Cursor.ml b/lib/protocols/Cursor.ml
index 75dc77d..f9bd697 100644
--- a/lib/protocols/Cursor.ml
+++ b/lib/protocols/Cursor.ml
@@ -29,9 +29,7 @@ let rec next i =
let rec exists i p =
let open Utilities.Result in
let* found = next i in
- match found with
- | None -> Ok false
- | Some tuple -> if p tuple then Ok true else exists i p
+ match found with None -> Ok false | Some tuple -> if p tuple then Ok true else exists i p
let drain i ?(limit = 256) () =
let open Utilities.Result in