mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
test lint
This commit is contained in:
@@ -85,8 +85,7 @@ async fn wait_for_analytics_event(
|
||||
.into_iter()
|
||||
.filter(|request| request.url.path() == "/codex/analytics-events/events")
|
||||
.find_map(|request| {
|
||||
let payload: Value =
|
||||
serde_json::from_slice(&request.body).expect("analytics payload");
|
||||
let payload: Value = serde_json::from_slice(&request.body).ok()?;
|
||||
payload["events"].as_array().and_then(|events| {
|
||||
events
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user