Migrate all requests to result pattern

This commit is contained in:
Joel Speed
2020-07-06 20:38:00 +01:00
parent d0b6c04960
commit de9e65a63a
15 changed files with 46 additions and 50 deletions
+1
View File
@@ -133,6 +133,7 @@ func (p *GitLabProvider) getUserInfo(ctx context.Context, s *sessions.SessionSta
err := requests.New(userInfoURL.String()).
WithContext(ctx).
SetHeader("Authorization", "Bearer "+s.AccessToken).
Do().
UnmarshalInto(&userInfo)
if err != nil {
return nil, fmt.Errorf("error getting user info: %v", err)