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();
|
let mut stack = event_ids.to_vec();
|
||||||
|
|
||||||
// DFS for auth event chain
|
// DFS for auth event chain
|
||||||
while !stack.is_empty() {
|
while let Some(ev_id) = stack.pop() {
|
||||||
let ev_id = stack.pop().unwrap();
|
|
||||||
if result.contains(&ev_id) {
|
if result.contains(&ev_id) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user