mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
pkg/kubelet: reduce indentation
This commit is contained in:
parent
edc926ffcb
commit
13bb378d1c
@ -78,11 +78,10 @@ func (h *httpActionHandler) Run(podFullName string, uid types.UID, container *ap
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
netInfo, found := status.Info[dockertools.PodInfraContainerName]
|
netInfo, found := status.Info[dockertools.PodInfraContainerName]
|
||||||
if found {
|
if !found {
|
||||||
host = netInfo.PodIP
|
|
||||||
} else {
|
|
||||||
return fmt.Errorf("failed to find networking container: %v", status)
|
return fmt.Errorf("failed to find networking container: %v", status)
|
||||||
}
|
}
|
||||||
|
host = netInfo.PodIP
|
||||||
}
|
}
|
||||||
var port int
|
var port int
|
||||||
if handler.HTTPGet.Port.Kind == util.IntstrString && len(handler.HTTPGet.Port.StrVal) == 0 {
|
if handler.HTTPGet.Port.Kind == util.IntstrString && len(handler.HTTPGet.Port.StrVal) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user