mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
remove superfolous trycatch
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user