Commit c0feba4f authored by Ma Shimiao's avatar Ma Shimiao

remove unreachable code

parent 51f3ac1b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment