state-res: Remove unnecessary unwrap call

This commit is contained in:
Jonas Platte 2021-09-13 15:35:21 +02:00
parent f566cd4486
commit 717fd1198d
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -223,8 +223,7 @@ impl<E: Event> TestStore<E> {
let mut stack = event_ids.to_vec();
// DFS for auth event chain
while !stack.is_empty() {
let ev_id = stack.pop().unwrap();
while let Some(ev_id) = stack.pop() {
if result.contains(&ev_id) {
continue;
}