Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
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.tsindex 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,