mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-03 16:01:22 +00:00
style: cargo fmt provider-antigravity failure.rs
This commit is contained in:
@@ -142,10 +142,8 @@ pub(crate) fn is_validation_required(error: &ProviderError) -> bool {
|
||||
let Some(failure) = google_error(&document) else {
|
||||
return false;
|
||||
};
|
||||
let Some(detail) = google_error_detail(
|
||||
failure,
|
||||
"type.googleapis.com/google.rpc.ErrorInfo",
|
||||
) else {
|
||||
let Some(detail) = google_error_detail(failure, "type.googleapis.com/google.rpc.ErrorInfo")
|
||||
else {
|
||||
return false;
|
||||
};
|
||||
detail.get("reason").and_then(|reason| reason.as_str()) == Some("VALIDATION_REQUIRED")
|
||||
|
||||
Reference in New Issue
Block a user