Skip to content

Commit 18c3f9d

Browse files
committed
fmt
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
1 parent 4991c11 commit 18c3f9d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/dune_engine/sub_dirs.ml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,12 @@ end
190190

191191
let descendant_path =
192192
Dune_lang.Decoder.plain_string (fun ~loc fn ->
193-
if Filename.is_relative fn then
194-
Path.Local.parse_string_exn ~loc fn |> Path.Local.explode
195-
else
196-
let msg = [ Pp.textf "invalid sub-directory path %S" fn ] in
197-
let hints = [ Pp.textf "subdirectory path must be relative" ]
198-
in
199-
User_error.raise ~loc ~hints msg)
193+
if Filename.is_relative fn then
194+
Path.Local.parse_string_exn ~loc fn |> Path.Local.explode
195+
else
196+
let msg = [ Pp.textf "invalid sub-directory path %S" fn ] in
197+
let hints = [ Pp.textf "subdirectory path must be relative" ] in
198+
User_error.raise ~loc ~hints msg)
200199

201200
let strict_subdir field_name =
202201
let open Dune_lang.Decoder in

0 commit comments

Comments
 (0)