Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Nov 11, 2024
1 parent 4599001 commit a1063b3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,15 @@ impl AsyncStorage {
latest_build_id: Option<BuildId>,
path: &str,
) -> Result<bool> {
Ok(self
match self
.find_in_archive_index(archive_path, latest_build_id, path)
.await?
.is_some())
.await
{
Ok(Some(_)) => Ok(true),
Ok(None) => Ok(false),
Err(err) if err.downcast_ref::<PathNotFoundError>().is_some() => Ok(false),
Err(err) => Err(err),
}
}

#[instrument]
Expand Down

0 comments on commit a1063b3

Please sign in to comment.