remove superfolous trycatch

This commit is contained in:
McPizza0
2024-11-26 23:46:23 +01:00
parent 229706f57f
commit 728f023263

View File

@@ -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,