mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 19:28:16 +00:00
remove superfolous trycatch
This commit is contained in:
@@ -519,16 +519,11 @@ const syncSecretsAzureKeyVault = async ({
|
|||||||
lastSlashIndex = getAzureKeyVaultSecret.id.lastIndexOf("/");
|
lastSlashIndex = getAzureKeyVaultSecret.id.lastIndexOf("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
let azureKeyVaultSecret;
|
const azureKeyVaultSecret = await request.get(`${getAzureKeyVaultSecret.id}?api-version=7.3`, {
|
||||||
try {
|
headers: {
|
||||||
azureKeyVaultSecret = await request.get(`${getAzureKeyVaultSecret.id}?api-version=7.3`, {
|
Authorization: `Bearer ${accessToken}`
|
||||||
headers: {
|
}
|
||||||
Authorization: `Bearer ${accessToken}`
|
});
|
||||||
}
|
|
||||||
});
|
|
||||||
} catch (err) {
|
|
||||||
throw new Error(`Failed to fetch Azure Key Vault secret: ${(err as Error).message}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...azureKeyVaultSecret.data,
|
...azureKeyVaultSecret.data,
|
||||||
|
|||||||
Reference in New Issue
Block a user