Merge pull request #1626 from PieterVoorwinden/master

Check if auth is nil to prevent nilpointer
This commit is contained in:
ben-toogood 2020-05-13 15:18:58 +01:00 committed by GitHub
commit ba64518ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ func (a *authWrapper) Call(ctx context.Context, req client.Request, rsp interfac
// if auth is nil we won't be able to get an access token, so we execute // if auth is nil we won't be able to get an access token, so we execute
// the request without one. // the request without one.
aa := a.auth() aa := a.auth()
if a == nil { if aa == nil {
return a.Client.Call(ctx, req, rsp, opts...) return a.Client.Call(ctx, req, rsp, opts...)
} }