Skip to content

Commit

Permalink
Update src/repository/opamRepository.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate authored Jul 17, 2024
1 parent 828846e commit 49f93d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository/opamRepository.ml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ let fetch_from_cache =
List.fold_left (fun (hit, misses) ck ->
let f = cache_file cache_dir ck in
if OpamFilename.exists f
then (Some f, misses)
then (if hit = None then (Some f, misses) else (hit, misses))
else (hit, f :: misses))
(None, []) checksums
with
Expand Down

0 comments on commit 49f93d0

Please sign in to comment.