Move away from the "andForget" style of function (#3043)

As suggested by @crspeller here:
https://github.com/mattermost/platform/pull/3022#issuecomment-220004020
Этот коммит содержится в:
Thomas Balthazar
2016-05-18 17:14:55 +02:00
коммит произвёл Christopher Speller
родитель 880ef25ab1
Коммит d48be63513
2 изменённых файлов: 155 добавлений и 181 удалений

Просмотреть файл

@@ -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")
}