Commit 09abd0ed authored by yupengzte's avatar yupengzte

delete unreachable code

parent 24cb1cec
......@@ -103,13 +103,11 @@ func (r *customResourceDefinitionHandler) ServeHTTP(w http.ResponseWriter, req *
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