diff options
author | Florian Klink <flokli@flokli.de> | 2024-03-18T12·22+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-03-18T14·25+0000 |
commit | 70bbf23767754b057afbcd05d476be1bf8c23157 (patch) | |
tree | 78c494a6058fedb9b4d7dd16a5b15f4b3c39dac5 /tvix/castore/src/blobservice | |
parent | 3b1c9172f61985ce070b276e13855f82ea234c8b (diff) |
refactor(tvix/castore/src/blobservice): remove useless else case r/7720
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
Diffstat (limited to 'tvix/castore/src/blobservice')
-rw-r--r-- | tvix/castore/src/blobservice/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tvix/castore/src/blobservice/mod.rs b/tvix/castore/src/blobservice/mod.rs index 478998a32c5c..7324fcf5168a 100644 --- a/tvix/castore/src/blobservice/mod.rs +++ b/tvix/castore/src/blobservice/mod.rs @@ -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![])) } } |