From 93460adb483dfe782d609527391cd698e76864fe Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 16 Nov 2023 09:58:21 +0800 Subject: [PATCH] chore: slice loop replace --- provider.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/provider.go b/provider.go index ca10d2f..c77f011 100644 --- a/provider.go +++ b/provider.go @@ -40,8 +40,6 @@ func (auth *Auth) GetProvider(name string) Provider { // GetProviders return registered providers func (auth *Auth) GetProviders() (providers []Provider) { - for _, provider := range auth.providers { - providers = append(providers, provider) - } + providers = append(providers, auth.providers...) return }