Skip to content

Commit

Permalink
Merge pull request #33 from is2ei/check-err
Browse files Browse the repository at this point in the history
Check err
  • Loading branch information
vvatanabe committed Nov 20, 2018
2 parents 8b4c27e + 9cf90d4 commit 012f233
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions typetalk/v1/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func (s *FilesService) DownloadAttachmentFile(ctx context.Context, topicId, post
req.Header.Set("Accept", DefaultMediaType)

resp, err := s.client.Client.Do(req)
if err != nil {
return nil, err
}
if err := CheckResponse(resp); err != nil {
resp.Body.Close()
return nil, err
Expand Down

0 comments on commit 012f233

Please sign in to comment.