summaryrefslogtreecommitdiffstats
path: root/modules/auth/oauth2/oauth2.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/oauth2/oauth2.go')
-rw-r--r--modules/auth/oauth2/oauth2.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/auth/oauth2/oauth2.go b/modules/auth/oauth2/oauth2.go
index 5684f44a89..a2d7116211 100644
--- a/modules/auth/oauth2/oauth2.go
+++ b/modules/auth/oauth2/oauth2.go
@@ -220,8 +220,7 @@ func GetDefaultProfileURL(provider string) string {
// GetDefaultEmailURL return the default email url for the given provider
func GetDefaultEmailURL(provider string) string {
- switch provider {
- case "github":
+ if provider == "github" {
return github.EmailURL
}
return ""