From 174d1897655b8af31637d79728169768d2cf8004 Mon Sep 17 00:00:00 2001 From: brinkmannf Date: Sat, 14 Jan 2023 07:17:27 +0100 Subject: [PATCH] fix: replace var as variable name Signed-off-by: brinkmannf --- .../jkube/kit/enricher/api/util/KubernetesResourceUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jkube-kit/enricher/api/src/main/java/org/eclipse/jkube/kit/enricher/api/util/KubernetesResourceUtil.java b/jkube-kit/enricher/api/src/main/java/org/eclipse/jkube/kit/enricher/api/util/KubernetesResourceUtil.java index afaf6a91a4..e26a671d08 100644 --- a/jkube-kit/enricher/api/src/main/java/org/eclipse/jkube/kit/enricher/api/util/KubernetesResourceUtil.java +++ b/jkube-kit/enricher/api/src/main/java/org/eclipse/jkube/kit/enricher/api/util/KubernetesResourceUtil.java @@ -569,10 +569,10 @@ private static void ensureHasEnv(Container container, EnvVar envVar) { envVars = new ArrayList<>(); container.setEnv(envVars); } - for (EnvVar var : envVars) { - if (Objects.equals(var.getName(), envVar.getName())) { + for (EnvVar envVariable : envVars) { + if (Objects.equals(envVariable.getName(), envVar.getName())) { // lets replace the object so that we can update the value or valueFrom - envVars.remove(var); + envVars.remove(envVariable); envVars.add(envVar); return; }