Skip to content

Commit 4edba3d

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

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
@@ -436,10 +436,10 @@ let copy_lock_dir ~target ~lock_dir ~deps ~files =
436436
let open Action_builder.O in
437437
Action_builder.deps deps
438438
>>> (Path.Set.to_list_map files ~f:(fun src ->
439-
let suffix = Path.drop_prefix_exn src ~prefix:lock_dir in
440-
let dst = Path.Build.append_local target suffix in
441-
let parent = Path.Build.parent_exn dst in
442-
Action.progn [ Action.mkdir parent; Action.copy src dst ])
439+
let dst =
440+
Path.drop_prefix_exn src ~prefix:lock_dir |> Path.Build.append_local target
441+
in
442+
Action.progn [ Action.mkdir (Path.Build.parent_exn dst); Action.copy src dst ])
443443
|> Action.concurrent
444444
|> Action.Full.make
445445
|> Action_builder.return)

0 commit comments

Comments
 (0)