@@ -433,10 +433,9 @@ let lookup_watch_perm path = function
433433 try
434434 Store.Path. apply root path @@ fun parent name ->
435435 Store.Node. get_perms parent
436- ::
437- ( try [Store.Node. get_perms (Store.Node. find parent name)]
438- with Not_found -> []
439- )
436+ :: ( try [Store.Node. get_perms (Store.Node. find parent name)]
437+ with Not_found -> []
438+ )
440439 with Define. Invalid_path | Not_found -> []
441440 )
442441
@@ -491,7 +490,9 @@ let fire_single_watch source (oldroot, root) depth watch =
491490 if watch.path.[0 ] = '@' then
492491 true
493492 else
494- match watch.depth with
493+ match
494+ watch.depth
495+ with
495496 | None ->
496497 true
497498 | Some x when x > = depth - watch.path_depth ->
@@ -523,14 +524,14 @@ let fire_watch source roots watch path depth =
523524(* Search for a valid unused transaction id. *)
524525let rec valid_transaction_id con proposed_id =
525526 (*
526- * Clip proposed_id to the range [1, 0x3ffffffe]
527- *
528- * The chosen id must not trucate when written into the uint32_t tx_id
529- * field, and needs to fit within the positive range of a 31 bit ocaml
530- * integer to function when compiled as 32bit.
531- *
532- * Oxenstored therefore supports only 1 billion open transactions.
533- *)
527+ * Clip proposed_id to the range [1, 0x3ffffffe]
528+ *
529+ * The chosen id must not trucate when written into the uint32_t tx_id
530+ * field, and needs to fit within the positive range of a 31 bit ocaml
531+ * integer to function when compiled as 32bit.
532+ *
533+ * Oxenstored therefore supports only 1 billion open transactions.
534+ *)
534535 let id =
535536 if proposed_id < = 0 || proposed_id > = 0x3fffffff then 1 else proposed_id
536537 in
0 commit comments