Skip to content

Commit

Permalink
Don't check if path is root directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrinberg committed May 4, 2018
1 parent 26afe02 commit cabadcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_system.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ let rec add_build_dir_to_keep t ~dir =
if not (Pset.mem t.build_dirs_to_keep dir) then begin
t.build_dirs_to_keep <- Pset.add t.build_dirs_to_keep dir;
let dir = Path.parent dir in
if dir <> Path.root then
if not (Path.is_root dir) then
add_build_dir_to_keep t ~dir
end

Expand Down

0 comments on commit cabadcf

Please sign in to comment.