Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Small formatting fixes

Daniel Ingea7f52a929836
diff --git a/backend/src/controllers/v2/environmentController.ts b/backend/src/controllers/v2/environmentController.ts
index 99aa91a10a..ab553aef3e 100644
--- a/backend/src/controllers/v2/environmentController.ts
+++ b/backend/src/controllers/v2/environmentController.ts
@@ -161,7 +161,6 @@ export const renameWorkspaceEnvironment = async (
if (envIndex === -1) {
throw new Error("Invalid environment given");
}
-
const oldEnvironment = workspace.environments[envIndex];
workspace.environments[envIndex].name = environmentName;
@@ -196,7 +195,6 @@ export const renameWorkspaceEnvironment = async (
{ $set: { "deniedPermissions.$[element].environmentSlug": environmentSlug } },
{ arrayFilters: [{ "element.environmentSlug": oldEnvironmentSlug }] }
);
-
await EEAuditLogService.createAuditLog(
req.authData,
{
@@ -247,7 +245,6 @@ export const deleteWorkspaceEnvironment = async (
if (envIndex === -1) {
throw new Error("Invalid environment given");
}
-
const oldEnvironment = workspace.environments[envIndex];
workspace.environments.splice(envIndex, 1);