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) {