fix(ai): satisfy response history clippy checks

This commit is contained in:
ZheFox
2026-07-30 20:13:36 +08:00
parent 84022c4d48
commit ef5f36cc2b
@@ -329,17 +329,12 @@ pub fn record_converted_response_history(
{ {
return None; return None;
} }
let Some(response_id) = response let response_id = response
.get("id") .get("id")
.and_then(Value::as_str) .and_then(Value::as_str)
.map(str::trim) .map(str::trim)
.filter(|value| !value.is_empty()) .filter(|value| !value.is_empty())?;
else { let request = report_context.get("original_request_body")?;
return None;
};
let Some(request) = report_context.get("original_request_body") else {
return None;
};
let history_scope = report_context let history_scope = report_context
.get("api_key_id") .get("api_key_id")
.and_then(Value::as_str) .and_then(Value::as_str)