golint cleanup of else block

This commit is contained in:
Paul Bellamy committed 2015-05-19 10:47:57 +01:00
1 parent b71a428369
commit ee07d645b4
1 file changed
+1 -3
+1 -3
View File
@@ -21,13 +21,11 @@ func (i *startContainerInterceptor) InterceptRequest(r *http.Request) error {
}
func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
containerID := ""
if subs := containerIDRegexp.FindStringSubmatch(r.Request.URL.Path); subs == nil {
Warning.Printf("No container id found in request with path %s", r.Request.URL.Path)
return nil
} else {
containerID = subs[1]
}
containerID := subs[1]
container, err := i.client.InspectContainer(containerID)
if err != nil {