Check if auth is nil to prevent nilpointer

This commit is contained in:
Pieter Voorwinden 2020-05-13 16:13:23 +02:00
parent af2db0a0d9
commit b14d63b4a1

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
// the request without one.
aa := a.auth()
if a == nil {
if aa == nil {
return a.Client.Call(ctx, req, rsp, opts...)
}