style: ran gofmt
This commit is contained in:
parent
2ccfdc4336
commit
cb7ac4175d
2 changed files with 6 additions and 6 deletions
|
@ -17,11 +17,11 @@ func (g *Client) GetMediaAttachment(mediaAttachmentID string) (model.Attachment,
|
||||||
var attachment model.Attachment
|
var attachment model.Attachment
|
||||||
|
|
||||||
params := requestParameters{
|
params := requestParameters{
|
||||||
httpMethod: http.MethodGet,
|
httpMethod: http.MethodGet,
|
||||||
url: url,
|
url: url,
|
||||||
requestBody: nil,
|
requestBody: nil,
|
||||||
contentType: "",
|
contentType: "",
|
||||||
output: &attachment,
|
output: &attachment,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := g.sendRequest(params); err != nil {
|
if err := g.sendRequest(params); err != nil {
|
||||||
|
|
|
@ -36,11 +36,11 @@ func (g *Client) Register() error {
|
||||||
var app model.Application
|
var app model.Application
|
||||||
|
|
||||||
requestParams := requestParameters{
|
requestParams := requestParameters{
|
||||||
httpMethod: http.MethodPost,
|
httpMethod: http.MethodPost,
|
||||||
url: url,
|
url: url,
|
||||||
requestBody: requestBody,
|
requestBody: requestBody,
|
||||||
contentType: applicationJSON,
|
contentType: applicationJSON,
|
||||||
output: &app,
|
output: &app,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := g.sendRequest(requestParams); err != nil {
|
if err := g.sendRequest(requestParams); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue