Skip to content

Commit

Permalink
Add error check before return to make it consistent (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahildua2305 authored and gmlewis committed May 7, 2017
1 parent 0e39181 commit 6eb37b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion github/repos_invitations.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,9 @@ func (s *RepositoriesService) UpdateInvitation(ctx context.Context, owner, repo

invite := &RepositoryInvitation{}
resp, err := s.client.Do(ctx, req, invite)
return invite, resp, err
if err != nil {
return nil, resp, err
}

return invite, resp, nil
}

0 comments on commit 6eb37b8

Please sign in to comment.