Remove unnecessary concatenation of strings

Remove unnecessary concatenation of strings "/{" + "namespace" + "}/"
pull/58/head
Zhenguo Niu 2018-08-30 20:11:59 +08:00
parent 23111ad414
commit 70fd811f84
1 changed files with 1 additions and 1 deletions

View File

@ -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