Skip to content

Commit

Permalink
Cleanup of code for #366
Browse files Browse the repository at this point in the history
  • Loading branch information
commjoen committed Aug 7, 2022
1 parent 7a5e30c commit 24b6452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/owasp/wrongsecrets/RuntimeEnvironment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 24b6452

Please sign in to comment.