Skip to content

Commit 9e6a976

Browse files
[autofix.ci] apply automated fixes
1 parent 9f5aecc commit 9e6a976

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/secret_resolver.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -712,20 +712,20 @@ async fn try_batch_with_auth_retry(
712712
{
713713
Ok(batch_results) => {
714714
let auth_error = extract_auth_error_from_batch(&batch_results);
715-
if let Some(ref auth_err) = auth_error {
716-
if prompt_and_run_auth(config, provider_config, provider_name, auth_err)? {
717-
// Auth prompt successful, retry the batch operation.
718-
let retry_results = try_get_secrets_batch(
719-
config,
720-
profile,
721-
provider_name,
722-
provider_config,
723-
provider_secrets,
724-
)
725-
.await?;
726-
process_batch_results(secrets, config, retry_results, results)?;
727-
return Ok(std::mem::take(results));
728-
}
715+
if let Some(ref auth_err) = auth_error
716+
&& prompt_and_run_auth(config, provider_config, provider_name, auth_err)?
717+
{
718+
// Auth prompt successful, retry the batch operation.
719+
let retry_results = try_get_secrets_batch(
720+
config,
721+
profile,
722+
provider_name,
723+
provider_config,
724+
provider_secrets,
725+
)
726+
.await?;
727+
process_batch_results(secrets, config, retry_results, results)?;
728+
return Ok(std::mem::take(results));
729729
}
730730
// No auth error, or user declined auth prompt. Process original results.
731731
process_batch_results(secrets, config, batch_results, results)?;

0 commit comments

Comments
 (0)