···557557 message: format!("request_plc_operation_signature failed: {}", e),
558558 })?;
559559560560- if resp.status().is_success() {
560560+ let status = resp.status();
561561+ if status.is_success() {
561562 Ok(())
562563 } else {
563563- let status = resp.status();
564564 let body = resp.text().await.unwrap_or_default();
565565 Err(PdsClientError::NetworkError {
566566 message: format!("request_plc_operation_signature returned {}: {}", status, body),
···580580 message: format!("sign_plc_operation failed: {}", e),
581581 })?;
582582583583- if !resp.status().is_success() {
584584- let status = resp.status();
583583+ let status = resp.status();
584584+ if !status.is_success() {
585585 let body = resp.text().await.unwrap_or_default();
586586 return Err(PdsClientError::NetworkError {
587587 message: format!("sign_plc_operation returned {}: {}", status, body),
···606606 message: format!("get_recommended_did_credentials failed: {}", e),
607607 })?;
608608609609- if !resp.status().is_success() {
610610- let status = resp.status();
609609+ let status = resp.status();
610610+ if !status.is_success() {
611611 let body = resp.text().await.unwrap_or_default();
612612 return Err(PdsClientError::NetworkError {
613613 message: format!("get_recommended_did_credentials returned {}: {}", status, body),