mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #68063 from niuzhenguo/useless-string-concatenation
Remove unnecessary concatenation of strings
This commit is contained in:
commit
0ad0a423c0
@ -412,7 +412,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