Fix for golint ./...

This commit is contained in:
178inaba 2017-04-20 21:20:40 +09:00
parent c417db5189
commit 68843f4dd0
4 changed files with 6 additions and 5 deletions

View file

@ -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)