Skip to content

Commit 377a859

Browse files
Closer to style of main
Signed-off-by: Marek Kubica <[email protected]>
1 parent 0f41c42 commit 377a859

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dune_rules/lock_rules.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ let copy_lock_dir ~target ~lock_dir ~deps ~files =
410410
let open Action_builder.O in
411411
Action_builder.deps deps
412412
>>> (Path.Set.to_list_map files ~f:(fun src ->
413-
let suffix = Path.drop_prefix_exn src ~prefix:lock_dir in
414-
let dst = Path.Build.append_local target suffix in
415-
let parent = Path.Build.parent_exn dst in
416-
Action.progn [ Action.mkdir parent; Action.copy src dst ])
413+
let dst =
414+
Path.drop_prefix_exn src ~prefix:lock_dir |> Path.Build.append_local target
415+
in
416+
Action.progn [ Action.mkdir (Path.Build.parent_exn dst); Action.copy src dst ])
417417
|> Action.concurrent
418418
|> Action.Full.make
419419
|> Action_builder.return)

0 commit comments

Comments
 (0)