···203203 let expected_in_doc = did_doc.also_known_as.is_some_and(|v| {
204204 v.iter()
205205 .filter_map(|v| v.strip_prefix("at://"))
206206- .find(|v| v == &expected)
207207- .is_some()
206206+ .any(|v| v == &expected)
208207 });
209208210209 // if it isn't, set to invalid.
···216215 // in theory, we can use com.atproto.identity.resolveHandle against a PDS, but that seems
217216 // like a way to end up with really sus handles.
218217 let Some(handle_did) = state.resolver.resolve_handle(&expected).await? else {
219219- Ok(Some(None))
218218+ return Ok(Some(None));
220219 };
221220222221 // finally, check if the event did matches the handle, if not, set invalid, otherwise set the handle.