diff --git a/src/core/src/storage/mod.rs b/src/core/src/storage/mod.rs index 3a736b7f7e..12f456fc22 100644 --- a/src/core/src/storage/mod.rs +++ b/src/core/src/storage/mod.rs @@ -297,19 +297,12 @@ impl Storage for FSStorage { } fn load_sig(&self, path: &str) -> Result { - let sig = match self.load(path) { - Ok(raw) => { - let sig = Signature::from_reader(&mut &raw[..])? - .swap_remove(0) - .into(); - sig - }, - Err(_) => { - todo!("cannot load from path '{path}'") - } - }; + let raw = self.load(path)?; + let sig = Signature::from_reader(&mut &raw[..])? + // TODO: select the right sig? + .swap_remove(0); - Ok(sig) + Ok(sig.into()) } fn spec(&self) -> String {