We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d1b78a commit bf5a191Copy full SHA for bf5a191
plugins/store/src/store.rs
@@ -188,10 +188,8 @@ impl<R: Runtime> StoreBuilder<R> {
188
if let Some(rid) = stores.remove(&self.path) {
189
let _ = self.app.resources_table().take::<Store<R>>(rid);
190
}
191
- } else {
192
- if let Some(rid) = stores.get(&self.path) {
193
- return Ok((self.app.resources_table().get(*rid).unwrap(), *rid));
194
- }
+ } else if let Some(rid) = stores.get(&self.path) {
+ return Ok((self.app.resources_table().get(*rid).unwrap(), *rid));
195
196
197
// if stores.contains_key(&self.path) {
0 commit comments