golint cleanup of else block
This commit is contained in:
1 parent
b71a428369
commit
ee07d645b4
1 file changed
+1
-3
@@ -21,13 +21,11 @@ func (i *startContainerInterceptor) InterceptRequest(r *http.Request) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
|
func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
|
||||||
containerID := ""
|
|
||||||
if subs := containerIDRegexp.FindStringSubmatch(r.Request.URL.Path); subs == nil {
|
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)
|
Warning.Printf("No container id found in request with path %s", r.Request.URL.Path)
|
||||||
return nil
|
return nil
|
||||||
} else {
|
|
||||||
containerID = subs[1]
|
|
||||||
}
|
}
|
||||||
|
containerID := subs[1]
|
||||||
|
|
||||||
container, err := i.client.InspectContainer(containerID)
|
container, err := i.client.InspectContainer(containerID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user