From 2c590102f97b12284f40ce4cfbdfe8ef9bd54342 Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Sat, 24 Aug 2024 07:13:58 -0700 Subject: [PATCH] revert for now --- src/core/src/storage/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/src/storage/mod.rs b/src/core/src/storage/mod.rs index 856f8ff210..12f456fc22 100644 --- a/src/core/src/storage/mod.rs +++ b/src/core/src/storage/mod.rs @@ -657,11 +657,7 @@ impl Storage for MemStorage { } fn load_sig(&self, path: &str) -> Result { - let x = self.sigs.read().unwrap(); - match x.get(path) { - Some(path) => Ok(path.clone()), - None => panic!("cannot get path '{path}'") - } + Ok(self.sigs.read().unwrap().get(path).unwrap().clone()) } fn save_sig(&self, path: &str, sig: Signature) -> Result {