remove unreachable code

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
pull/6/head
Ma Shimiao 2017-05-19 16:47:15 +08:00
parent 51f3ac1b99
commit c0feba4f9f
1 changed files with 0 additions and 2 deletions

View File

@ -104,13 +104,11 @@ func (r *crdHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
if !ok {
// programmer error
panic("missing context")
return
}
requestInfo, ok := apirequest.RequestInfoFrom(ctx)
if !ok {
// programmer error
panic("missing requestInfo")
return
}
if !requestInfo.IsResourceRequest {
pathParts := splitPath(requestInfo.Path)