Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into add-some-redis-caching
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaJak committed Oct 11, 2023
2 parents b4a4de4 + f1ff88f commit 1a9a3ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/maven.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async fn find_version(
.partition::<Vec<_>, _>(|el| db_loaders.contains(el));

let matched = all_versions
.into_iter()
.iter()
.filter(|x| {
let mut bool = x.inner.version_number == vnumber;

Expand All @@ -206,7 +206,7 @@ async fn find_version(
})
.collect::<Vec<_>>();

Ok(matched.get(0).cloned())
Ok(matched.get(0).or_else(|| exact_matches.get(0)).copied().cloned())
}

fn find_file<'a>(
Expand Down

0 comments on commit 1a9a3ef

Please sign in to comment.