From 13bb378d1ce3c0cd9faa05415a4addfde105b061 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Mon, 16 Feb 2015 08:46:41 -0800 Subject: [PATCH] pkg/kubelet: reduce indentation --- pkg/kubelet/handlers.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/handlers.go b/pkg/kubelet/handlers.go index ef9df19077c..2aaa9042a9a 100644 --- a/pkg/kubelet/handlers.go +++ b/pkg/kubelet/handlers.go @@ -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 {