mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +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
|
||||
}
|
||||
netInfo, found := status.Info[dockertools.PodInfraContainerName]
|
||||
if found {
|
||||
host = netInfo.PodIP
|
||||
} else {
|
||||
if !found {
|
||||
return fmt.Errorf("failed to find networking container: %v", status)
|
||||
}
|
||||
host = netInfo.PodIP
|
||||
}
|
||||
var port int
|
||||
if handler.HTTPGet.Port.Kind == util.IntstrString && len(handler.HTTPGet.Port.StrVal) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user