@@ -170,7 +170,7 @@ func (s *AuthorizationsService) Get(id int) (*Authorization, *Response, error) {
170170 if err != nil {
171171 return nil , resp , err
172172 }
173- return a , resp , err
173+ return a , resp , nil
174174}
175175
176176// Create a new authorization for the specified OAuth application.
@@ -189,7 +189,7 @@ func (s *AuthorizationsService) Create(auth *AuthorizationRequest) (*Authorizati
189189 if err != nil {
190190 return nil , resp , err
191191 }
192- return a , resp , err
192+ return a , resp , nil
193193}
194194
195195// GetOrCreateForApp creates a new authorization for the specified OAuth
@@ -225,7 +225,7 @@ func (s *AuthorizationsService) GetOrCreateForApp(clientID string, auth *Authori
225225 return nil , resp , err
226226 }
227227
228- return a , resp , err
228+ return a , resp , nil
229229}
230230
231231// Edit a single authorization.
@@ -245,7 +245,7 @@ func (s *AuthorizationsService) Edit(id int, auth *AuthorizationUpdateRequest) (
245245 return nil , resp , err
246246 }
247247
248- return a , resp , err
248+ return a , resp , nil
249249}
250250
251251// Delete a single authorization.
@@ -285,7 +285,7 @@ func (s *AuthorizationsService) Check(clientID string, token string) (*Authoriza
285285 return nil , resp , err
286286 }
287287
288- return a , resp , err
288+ return a , resp , nil
289289}
290290
291291// Reset is used to reset a valid OAuth token without end user involvement.
@@ -313,7 +313,7 @@ func (s *AuthorizationsService) Reset(clientID string, token string) (*Authoriza
313313 return nil , resp , err
314314 }
315315
316- return a , resp , err
316+ return a , resp , nil
317317}
318318
319319// Revoke an authorization for an application.
@@ -352,7 +352,7 @@ func (s *AuthorizationsService) ListGrants() ([]*Grant, *Response, error) {
352352 return nil , resp , err
353353 }
354354
355- return grants , resp , err
355+ return grants , resp , nil
356356}
357357
358358// GetGrant gets a single OAuth application grant.
@@ -371,7 +371,7 @@ func (s *AuthorizationsService) GetGrant(id int) (*Grant, *Response, error) {
371371 return nil , resp , err
372372 }
373373
374- return grant , resp , err
374+ return grant , resp , nil
375375}
376376
377377// DeleteGrant deletes an OAuth application grant. Deleting an application's
@@ -408,7 +408,7 @@ func (s *AuthorizationsService) CreateImpersonation(username string, authReq *Au
408408 if err != nil {
409409 return nil , resp , err
410410 }
411- return a , resp , err
411+ return a , resp , nil
412412}
413413
414414// DeleteImpersonation deletes an impersonation OAuth token.
0 commit comments