Skip to content

Commit bf5a191

Browse files
committed
Clippy
1 parent 0d1b78a commit bf5a191

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/store/src/store.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,8 @@ impl<R: Runtime> StoreBuilder<R> {
188188
if let Some(rid) = stores.remove(&self.path) {
189189
let _ = self.app.resources_table().take::<Store<R>>(rid);
190190
}
191-
} else {
192-
if let Some(rid) = stores.get(&self.path) {
193-
return Ok((self.app.resources_table().get(*rid).unwrap(), *rid));
194-
}
191+
} else if let Some(rid) = stores.get(&self.path) {
192+
return Ok((self.app.resources_table().get(*rid).unwrap(), *rid));
195193
}
196194

197195
// if stores.contains_key(&self.path) {

0 commit comments

Comments
 (0)