From 464cb3ec6b072ad443b134a934bd3ff77eb22cbb Mon Sep 17 00:00:00 2001 From: ubuntu Date: Tue, 5 Sep 2017 14:23:12 -0700 Subject: [PATCH] cosmetic changes --- lib/apiservers/engine/backends/container_proxy.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/apiservers/engine/backends/container_proxy.go b/lib/apiservers/engine/backends/container_proxy.go index 19d319ad91..c9d5b3c42d 100644 --- a/lib/apiservers/engine/backends/container_proxy.go +++ b/lib/apiservers/engine/backends/container_proxy.go @@ -826,6 +826,7 @@ func (c *ContainerProxy) Stop(vc *viccontainer.VicContainer, name string, second return nil } +// UnbindContainerFromNetwork unbinds a container from the networks that it connects to func (c *ContainerProxy) UnbindContainerFromNetwork(vc *viccontainer.VicContainer, handle string) (string, error) { defer trace.End(trace.Begin("")) @@ -841,11 +842,9 @@ func (c *ContainerProxy) UnbindContainerFromNetwork(vc *viccontainer.VicContaine default: return "", InternalServerError(err.Error()) } - } else { - handle = ub.Payload.Handle } - return handle, nil + return ub.Payload.Handle, nil } // State returns container state