mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +00:00
remove unreachable code
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
This commit is contained in:
parent
51f3ac1b99
commit
c0feba4f9f
@ -104,13 +104,11 @@ func (r *crdHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||||||
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