Skip to content

Commit eb0852b

Browse files
author
lijianguo
committed
feat(controller):add drycc resource cmd
2 parents 029b204 + 0b84631 commit eb0852b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

resources/resources.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,10 @@ func Binding(c *drycc.Client, appID string, name string, resource api.Binding) (
9393
}
9494
u := fmt.Sprintf("/v2/apps/%s/resources/%s/binding/", appID, name)
9595
res, reqErr := c.Request("PATCH", u, body)
96-
9796
if reqErr != nil {
9897
return api.Resource{}, reqErr
9998
}
10099
defer res.Body.Close()
101-
102-
//return api.Resource{}, reqErr
103-
104100
newResource := api.Resource{}
105101
if err = json.NewDecoder(res.Body).Decode(&newResource); err != nil {
106102
return api.Resource{}, err

0 commit comments

Comments
 (0)