mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #29085 from xiangpengzhao/delete_redundant_case
Automatic merge from submit-queue Delete redundant if condition The case `containerStatus == nil` has already been checked just above. It's redundant here.
This commit is contained in:
commit
372fb5cd5f
@ -1795,9 +1795,6 @@ func (dm *DockerManager) computePodContainerChanges(pod *api.Pod, podStatus *kub
|
|||||||
Containers:
|
Containers:
|
||||||
for i, container := range pod.Spec.InitContainers {
|
for i, container := range pod.Spec.InitContainers {
|
||||||
containerStatus := podStatus.FindContainerStatusByName(container.Name)
|
containerStatus := podStatus.FindContainerStatusByName(container.Name)
|
||||||
if containerStatus == nil {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
switch {
|
switch {
|
||||||
case containerStatus == nil:
|
case containerStatus == nil:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user