mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +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:
|
||||
for i, container := range pod.Spec.InitContainers {
|
||||
containerStatus := podStatus.FindContainerStatusByName(container.Name)
|
||||
if containerStatus == nil {
|
||||
continue
|
||||
}
|
||||
switch {
|
||||
case containerStatus == nil:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user