Skip to content

Commit eb31591

Browse files
committed
Style & minor fix
1 parent 14ae16b commit eb31591

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bin/rule.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ let print_rule ~nd ~prelude ~md_file ~ml_files ~dirs ~root ~requires options =
6464
in
6565
let root = match root with None -> "" | Some r -> Fmt.strf "--root=%s " r in
6666
let deps =
67-
let x =
67+
match
6868
List.map (Fmt.to_to_string pp_package_deps) requires @
6969
List.map (Fmt.to_to_string pp_ml_deps) (List.combine var_names ml_files) @
7070
List.map (Fmt.to_to_string pp_dir_deps) dirs @
7171
prelude
72-
in
73-
match x with
72+
with
7473
| [] -> ""
7574
| s -> String.concat ~sep:"\n" ("" :: s)
7675
in

lib/block.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ let required_packages t =
294294
| `Eq, "" ->
295295
Fmt.failwith "invalid `require-package` label value: requires a value"
296296
| `Eq, pkg -> pkg
297-
| _ -> Fmt.failwith "invalid `env` label value"
297+
| _ -> Fmt.failwith "invalid `require-package` label value"
298298
in
299299
List.map f (get_labels t "require-package")
300300

0 commit comments

Comments
 (0)