Skip to content

Commit

Permalink
List.filter_opt
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
  • Loading branch information
anmonteiro committed Apr 1, 2024
1 parent d305b10 commit bdfe638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dune_rules/lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ end = struct
| Not_found -> handle_resolve_result ~super db Not_found >>| Option.some
| Hidden { lib = info; reason = hidden; path = _ } ->
resolve_hidden db ~info hidden >>| Option.some)
>>| List.filter_map ~f:Fun.id
>>| List.filter_opt
>>| (function
| [] -> Status.Not_found
| [ status ] -> status
Expand Down

0 comments on commit bdfe638

Please sign in to comment.