mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Remove unnecessary concatenation of strings
Remove unnecessary concatenation of strings "/{" + "namespace" + "}/"
This commit is contained in:
parent
23111ad414
commit
70fd811f84
@ -401,7 +401,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
||||
namespaceParamName := "namespaces"
|
||||
// Handler for standard REST verbs (GET, PUT, POST and DELETE).
|
||||
namespaceParam := ws.PathParameter("namespace", "object name and auth scope, such as for teams and projects").DataType("string")
|
||||
namespacedPath := namespaceParamName + "/{" + "namespace" + "}/" + resource
|
||||
namespacedPath := namespaceParamName + "/{namespace}/" + resource
|
||||
namespaceParams := []*restful.Parameter{namespaceParam}
|
||||
|
||||
resourcePath := namespacedPath
|
||||
|
Loading…
Reference in New Issue
Block a user