Skip to content

Commit

Permalink
Update reloc.ml
Browse files Browse the repository at this point in the history
Co-authored-by: David Allsopp <david.allsopp@metastack.com>
  • Loading branch information
yakobowski and dra27 authored Jan 4, 2022
1 parent 98af858 commit 696ae2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reloc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,8 @@ let normalize_path path =
| "." :: path -> loop acc path
| ".." :: path -> begin
match acc with
| _ :: q -> loop q path
| [] -> loop [".."] path
| previous :: acc when previous <> ".." -> loop acc path
| _ -> loop (".." :: acc) path
end
| elem :: path -> loop (elem :: acc) path
| [] -> List.rev acc
Expand Down

0 comments on commit 696ae2c

Please sign in to comment.