refactor(tvix/castore/src/blobservice): remove useless else case

Change-Id: I09000371a1d8ff212ab46050d1a480509c6ffe70
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11183
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2024-03-18 14:22:47 +02:00 committed by clbot
parent 3b1c9172f6
commit 70bbf23767

View file

@ -56,11 +56,10 @@ pub trait BlobService: Send + Sync {
async fn chunks(&self, digest: &B3Digest) -> io::Result<Option<Vec<ChunkMeta>>> {
if !self.has(digest).await? {
return Ok(None);
} else {
// default implementation, signalling the backend does not have more
// granular chunks available.
return Ok(Some(vec![]));
}
// default implementation, signalling the backend does not have more
// granular chunks available.
Ok(Some(vec![]))
}
}