Skip to content

Commit

Permalink
Fix for older stdlib versions (List.concat_map requires >= 4.10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Feb 10, 2024
1 parent 24765e2 commit 90f24a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/report/html.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ end = struct

let rec flatten files =
files
|> List.concat_map (function
|> List.map (function
| (File _) as f -> [ f ]
| Directory (_, files, _) -> flatten files)
|> List.concat
end

let output_html_index ~tree ~sort_by_stats title theme filename files =
Expand Down

0 comments on commit 90f24a3

Please sign in to comment.