From bf5a19120f8429f12a7e8fe9f0f3eca363828a0d Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 17 Oct 2024 11:34:08 +0800 Subject: [PATCH] Clippy --- plugins/store/src/store.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index 72af4a02..1dc5e1d2 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -188,10 +188,8 @@ impl StoreBuilder { if let Some(rid) = stores.remove(&self.path) { let _ = self.app.resources_table().take::>(rid); } - } else { - if let Some(rid) = stores.get(&self.path) { - return Ok((self.app.resources_table().get(*rid).unwrap(), *rid)); - } + } else if let Some(rid) = stores.get(&self.path) { + return Ok((self.app.resources_table().get(*rid).unwrap(), *rid)); } // if stores.contains_key(&self.path) {