Fix for golint ./...
This commit is contained in:
parent
c417db5189
commit
68843f4dd0
4 changed files with 6 additions and 5 deletions
|
@ -202,7 +202,7 @@ func (c *Client) Search(ctx context.Context, q string, resolve bool) (*Results,
|
|||
return &results, nil
|
||||
}
|
||||
|
||||
// PostMedia upload a media attachment.
|
||||
// UploadMedia upload a media attachment.
|
||||
func (c *Client) UploadMedia(ctx context.Context, file string) (*Attachment, error) {
|
||||
var attachment Attachment
|
||||
err := c.doAPI(ctx, http.MethodPost, "/api/v1/media", file, &attachment, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue