state-res: Remove unnecessary unwrap call
This commit is contained in:
parent
f566cd4486
commit
717fd1198d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user