From 6256b863b0322af04ee150de59fe85169129d94a Mon Sep 17 00:00:00 2001 From: Daniel Haus Date: Mon, 6 Dec 2021 13:28:09 +0100 Subject: [PATCH] Fix linting issues. Signed-off-by: Daniel Haus --- connector/openshift/openshift.go | 6 ++++-- connector/openshift/openshift_test.go | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/connector/openshift/openshift.go b/connector/openshift/openshift.go index d25018b4..469dbd96 100644 --- a/connector/openshift/openshift.go +++ b/connector/openshift/openshift.go @@ -37,8 +37,10 @@ type Config struct { RootCA string `json:"rootCA"` } -var _ connector.CallbackConnector = (*openshiftConnector)(nil) -var _ connector.RefreshConnector = (*openshiftConnector)(nil) +var ( + _ connector.CallbackConnector = (*openshiftConnector)(nil) + _ connector.RefreshConnector = (*openshiftConnector)(nil) +) type openshiftConnector struct { apiURL string diff --git a/connector/openshift/openshift_test.go b/connector/openshift/openshift_test.go index ee25668c..6280b831 100644 --- a/connector/openshift/openshift_test.go +++ b/connector/openshift/openshift_test.go @@ -203,7 +203,7 @@ func TestRefreshIdentity(t *testing.T) { oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{ Endpoint: oauth2.Endpoint{ - AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL), + AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL), TokenURL: fmt.Sprintf("%s/oauth/token", s.URL), }, }} @@ -242,7 +242,7 @@ func TestRefreshIdentityFailure(t *testing.T) { oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{ Endpoint: oauth2.Endpoint{ - AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL), + AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL), TokenURL: fmt.Sprintf("%s/oauth/token", s.URL), }, }}