mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
delete unreachable code
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
This commit is contained in:
parent
24cb1cec64
commit
09abd0ed0d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user