From d48be63513ec083c3073df5b7c50525d18bf0181 Mon Sep 17 00:00:00 2001 From: Thomas Balthazar Date: Wed, 18 May 2016 17:14:55 +0200 Subject: Move away from the "andForget" style of function (#3043) As suggested by @crspeller here: https://github.com/mattermost/platform/pull/3022#issuecomment-220004020 --- api/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/oauth.go') diff --git a/api/oauth.go b/api/oauth.go index 37ca5ce0a..30efbdce3 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -636,5 +636,5 @@ func CompleteSwitchWithOAuth(c *Context, w http.ResponseWriter, r *http.Request, return } - sendSignInChangeEmailAndForget(c, user.Email, c.GetSiteURL(), strings.Title(service)+" SSO") + go sendSignInChangeEmail(c, user.Email, c.GetSiteURL(), strings.Title(service)+" SSO") } -- cgit v1.2.3-1-g7c22