From 718fc4df748aa80c3b4aca596493b38d79ac8a5f Mon Sep 17 00:00:00 2001 From: sh1luo <690898835@qq.com> Date: Tue, 10 Aug 2021 10:21:38 +0800 Subject: [PATCH] fix: improve goland experience (#238) Signed-off-by: sh1luo <690898835@qq.com> --- controllers/util.go | 1 - idp/provider.go | 1 - 2 files changed, 2 deletions(-) diff --git a/controllers/util.go b/controllers/util.go index 3e52ed41..83a0b68d 100644 --- a/controllers/util.go +++ b/controllers/util.go @@ -24,7 +24,6 @@ import ( var defaultHttpClient *http.Client var proxyHttpClient *http.Client -// InitHttpClient ... func InitHttpClient() { // not use proxy defaultHttpClient = http.DefaultClient diff --git a/idp/provider.go b/idp/provider.go index 57aba69a..a4ae0160 100644 --- a/idp/provider.go +++ b/idp/provider.go @@ -34,7 +34,6 @@ type IdProvider interface { GetUserInfo(token *oauth2.Token) (*UserInfo, error) } -// GetIdProvider ... func GetIdProvider(providerType string, clientId string, clientSecret string, redirectUrl string) IdProvider { if providerType == "GitHub" { return NewGithubIdProvider(clientId, clientSecret, redirectUrl)