Skip to content

Commit

Permalink
fix: fix some typo errors (#890)
Browse files Browse the repository at this point in the history
Signed-off-by: 上郡 <shangjun.csb@alibaba-inc.com>
Co-authored-by: 上郡 <shangjun.csb@alibaba-inc.com>
  • Loading branch information
iambocai and 上郡 authored Dec 5, 2023
1 parent 2ab672c commit d5ea29f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/server/domain/service/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func guaranteePolicyExist(c []string, policy string) ([]string, bool) {
return append(c, policy), true
}

// guaranteePolicyNotExist check the slice whether caontain the target policy, if yes delete
// guaranteePolicyNotExist check the slice whether contain the target policy, if yes delete
// and tell invoker whether should update the policy
func guaranteePolicyNotExist(c []string, policy string) ([]string, bool) {
res := make([]string, len(c))
Expand Down
4 changes: 2 additions & 2 deletions pkg/server/interfaces/api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func (c *application) GetWebServiceRoute() *restful.WebService {
Filter(c.appCheckFilter).
Filter(c.WorkflowAPI.workflowCheckFilter).
Param(ws.PathParameter("appName", "identifier of the application.").DataType("string").Required(true)).
Param(ws.PathParameter("workflowName", "identifier of the workfloc.").DataType("string")).
Param(ws.PathParameter("workflowName", "identifier of the workflow.").DataType("string")).
Metadata(restfulspec.KeyOpenAPITags, tags).
Filter(c.WorkflowAPI.workflowCheckFilter).
Returns(200, "create success", apis.DetailWorkflowResponse{}).
Expand All @@ -513,7 +513,7 @@ func (c *application) GetWebServiceRoute() *restful.WebService {
Writes(apis.DetailWorkflowResponse{}).Do(returns500))

ws.Route(ws.DELETE("/{appName}/workflows/{workflowName}").To(c.WorkflowAPI.deleteWorkflow).
Doc("deletet workflow").
Doc("delete workflow").
Metadata(restfulspec.KeyOpenAPITags, tags).
Filter(c.RbacService.CheckPerm("application/workflow", "delete")).
Filter(c.appCheckFilter).
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/interfaces/api/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (dt *Target) GetWebServiceRoute() *restful.WebService {
Writes(apis.DetailTargetResponse{}).Do(returns500))

ws.Route(ws.DELETE("/{targetName}").To(dt.deleteTarget).
Doc("deletet Target").
Doc("delete Target").
Metadata(restfulspec.KeyOpenAPITags, tags).
Filter(dt.targetCheckFilter).
Filter(dt.RbacService.CheckPerm("target", "delete")).
Expand Down

0 comments on commit d5ea29f

Please sign in to comment.