mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +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 {
|
if !ok {
|
||||||
// programmer error
|
// programmer error
|
||||||
panic("missing context")
|
panic("missing context")
|
||||||
return
|
|
||||||
}
|
}
|
||||||
requestInfo, ok := apirequest.RequestInfoFrom(ctx)
|
requestInfo, ok := apirequest.RequestInfoFrom(ctx)
|
||||||
if !ok {
|
if !ok {
|
||||||
// programmer error
|
// programmer error
|
||||||
panic("missing requestInfo")
|
panic("missing requestInfo")
|
||||||
return
|
|
||||||
}
|
}
|
||||||
if !requestInfo.IsResourceRequest {
|
if !requestInfo.IsResourceRequest {
|
||||||
pathParts := splitPath(requestInfo.Path)
|
pathParts := splitPath(requestInfo.Path)
|
||||||
|
Loading…
Reference in New Issue
Block a user