From 24b6452d6d259d68cc7822f9476fcf0214398659 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Sun, 7 Aug 2022 10:43:25 +0200 Subject: [PATCH] Cleanup of code for #366 --- .../java/org/owasp/wrongsecrets/RuntimeEnvironment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/owasp/wrongsecrets/RuntimeEnvironment.java b/src/main/java/org/owasp/wrongsecrets/RuntimeEnvironment.java index 7f5f92f36..be36cea37 100644 --- a/src/main/java/org/owasp/wrongsecrets/RuntimeEnvironment.java +++ b/src/main/java/org/owasp/wrongsecrets/RuntimeEnvironment.java @@ -82,9 +82,9 @@ public boolean canRun(Challenge challenge) { return true; } if (isK8sUnlockedInCTFMode()) { - return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment) || - challenge.supportedRuntimeEnvironments().contains(DOCKER) || challenge.supportedRuntimeEnvironments().contains(K8S) || - challenge.supportedRuntimeEnvironments().contains(VAULT); + return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment) + || challenge.supportedRuntimeEnvironments().contains(DOCKER) || challenge.supportedRuntimeEnvironments().contains(K8S) + || challenge.supportedRuntimeEnvironments().contains(VAULT); } return challenge.supportedRuntimeEnvironments().contains(runtimeEnvironment) || !Collections.disjoint(envToOverlappingEnvs.get(runtimeEnvironment), challenge.supportedRuntimeEnvironments());