Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove superfolous trycatch

McPizza0728f0232637e
diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.ts
index 10bdea8552..f69b3fefcb 100644
--- a/backend/src/services/integration-auth/integration-sync-secret.ts
+++ b/backend/src/services/integration-auth/integration-sync-secret.ts
@@ -519,16 +519,11 @@ const syncSecretsAzureKeyVault = async ({
lastSlashIndex = getAzureKeyVaultSecret.id.lastIndexOf("/");
}
- let azureKeyVaultSecret;
- try {
- azureKeyVaultSecret = await request.get(`${getAzureKeyVaultSecret.id}?api-version=7.3`, {
- headers: {
- Authorization: `Bearer ${accessToken}`
- }
- });
- } catch (err) {
- throw new Error(`Failed to fetch Azure Key Vault secret: ${(err as Error).message}`);
- }
+ const azureKeyVaultSecret = await request.get(`${getAzureKeyVaultSecret.id}?api-version=7.3`, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`
+ }
+ });
return {
...azureKeyVaultSecret.data,