remove superfolous trycatch

This commit is contained in:
McPizza0
2024-11-26 23:46:23 +01:00
parent 229706f57f
commit 728f023263
@@ -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,