mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Delete redundant if condition
This commit is contained in:
parent
4196be053b
commit
ca823097d2
@ -1796,9 +1796,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