Skip to content

Commit

Permalink
fix: replace var as variable name
Browse files Browse the repository at this point in the history
Signed-off-by: brinkmannf <felix.brinkmann@exacom.de>
  • Loading branch information
brinkmannf authored and manusa committed Jan 16, 2023
1 parent 679ddbd commit 174d189
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 174d189

Please sign in to comment.