Skip to content

Commit 8b9bfcc

Browse files
cuihtlauacclaude
andcommitted
Fix formatting for TSan CI scaffolding
dune @fmt / ocaml-ci's lint-fmt rejected two short match/if bindings that fit on a single line. No semantic change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent efb40c0 commit 8b9bfcc

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

test/irmin-pack/test_multicore.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ let src = Logs.Src.create "tests.multicore" ~doc:"Tests"
2323
module Log = (val Logs.src_log src : Logs.LOG)
2424

2525
let int_env name default =
26-
match Sys.getenv_opt name with
27-
| Some s -> int_of_string s
28-
| None -> default
26+
match Sys.getenv_opt name with Some s -> int_of_string s | None -> default
2927

3028
let default_domains = int_env "IRMIN_MULTICORE_DOMAINS" 2
3129
let test_iter = int_env "IRMIN_MULTICORE_ITER" 1

test/irmin-pack/test_tsan_stress/main.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ let run_all () =
2121
scenarios
2222

2323
let () =
24-
let which =
25-
if Array.length Sys.argv >= 2 then Sys.argv.(1) else "all"
26-
in
24+
let which = if Array.length Sys.argv >= 2 then Sys.argv.(1) else "all" in
2725
match which with
2826
| "all" -> run_all ()
2927
| name -> (

0 commit comments

Comments
 (0)