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:
Ishan Goel 2023-05-11 07:43:05 -07:00 committed by GitHub
parent 69f6c46a34
commit 7c47cfc906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2303,7 +2303,8 @@ func (s *Session) WebhookEditWithToken(webhookID, token, name, avatar string, op
Avatar string `json:"avatar,omitempty"`
}{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 {
return
}