Skip to content

Commit

Permalink
fixup! Refactor functions in 'pkg/libdevfile/libdevfile.go'
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Jun 27, 2022
1 parent dbac144 commit 978f52a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/devfile/adapters/kubernetes/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,11 @@ func UpdateContainersEntrypointsIfNeeded(
components = append(components, containerComps...)
}

if len(components) != 0 {
for _, c := range components {
for i := range containers {
container := &containers[i]
for _, c := range components {
if container.Name == c {
overrideContainerCommandAndArgsIfNeeded(container)
break
}
if container.Name == c {
overrideContainerCommandAndArgsIfNeeded(container)
}
}
}
Expand Down

0 comments on commit 978f52a

Please sign in to comment.