From 6e4176d8429f5b06da6c2e05b4aec48725ff7605 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 7 Oct 2024 15:31:08 +0200 Subject: [PATCH] Simplify logic for env vars --- swarmgate/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmgate/routes.ts b/swarmgate/routes.ts index 16607bc..23c6c67 100644 --- a/swarmgate/routes.ts +++ b/swarmgate/routes.ts @@ -12,7 +12,7 @@ const KNOWN_VOLUME_TYPES = ['bind', 'volume', 'tmpfs', 'npipe', 'cluster']; const ALLOWED_VOLUME_TYPES = process.env.ALLOWED_VOLUME_TYPES?.split(',') || ['bind', 'volume', 'tmpfs', 'npipe', 'cluster']; const ALLOW_PORT_EXPOSE = process.env.ALLOW_PORT_EXPOSE === '1' || process.env.ALLOW_PORT_EXPOSE === 'true'; const SERVICE_ALLOW_LISTED_NETWORKS = process.env.SERVICE_ALLOW_LISTED_NETWORKS?.split(',') || []; -const CHECK_VOLUME_OWNERSHIP_VIA_PREFIX = (process.env.CHECK_VOLUME_OWNERSHIP_VIA_PREFIX || 'false') === 'true'; +const CHECK_VOLUME_OWNERSHIP_VIA_PREFIX = process.env.CHECK_VOLUME_OWNERSHIP_VIA_PREFIX === 'true'; const tenantLabel = "com.github.neuroforgede.swarmgate.tenant";