fix(WebhookEditWithToken): error shadowing (#1372)
* fix(WebhookEditWithToken): error shadowing * fix: gofmt --------- Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
This commit is contained in:
parent
69f6c46a34
commit
7c47cfc906
1 changed files with 2 additions and 1 deletions
|
@ -2303,7 +2303,8 @@ func (s *Session) WebhookEditWithToken(webhookID, token, name, avatar string, op
|
||||||
Avatar string `json:"avatar,omitempty"`
|
Avatar string `json:"avatar,omitempty"`
|
||||||
}{name, avatar}
|
}{name, avatar}
|
||||||
|
|
||||||
body, err := s.RequestWithBucketID("PATCH", EndpointWebhookToken(webhookID, token), data, EndpointWebhookToken("", ""), options...)
|
var body []byte
|
||||||
|
body, err = s.RequestWithBucketID("PATCH", EndpointWebhookToken(webhookID, token), data, EndpointWebhookToken("", ""), options...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue