pull/1860/head
Tony 8 months ago
parent 0d1b78a958
commit bf5a19120f
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -188,11 +188,9 @@ impl<R: Runtime> StoreBuilder<R> {
if let Some(rid) = stores.remove(&self.path) {
let _ = self.app.resources_table().take::<Store<R>>(rid);
}
} else {
if let Some(rid) = stores.get(&self.path) {
} 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) {
// return Err(crate::Error::AlreadyExists(self.path));

Loading…
Cancel
Save