mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
Merge pull request #1626 from PieterVoorwinden/master
Check if auth is nil to prevent nilpointer
This commit is contained in:
commit
ba64518ebd
@ -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...)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user