From b14d63b4a12dda13bc4a8a2bbfeb53d6e8cdffe5 Mon Sep 17 00:00:00 2001 From: Pieter Voorwinden Date: Wed, 13 May 2020 16:13:23 +0200 Subject: [PATCH] Check if auth is nil to prevent nilpointer --- util/wrapper/wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/wrapper/wrapper.go b/util/wrapper/wrapper.go index 285a775f..8b501b12 100644 --- a/util/wrapper/wrapper.go +++ b/util/wrapper/wrapper.go @@ -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...) }