[MM-61076] Fix errcheck issues in server/channels/web/saml.go (#30612)
Co-authored-by: Claude <noreply@anthropic.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b8ad438c0a
Коммит
b7f89984db
@@ -158,7 +158,6 @@ issues:
|
||||
channels/store/storetest/thread_store.go|\
|
||||
channels/store/storetest/user_store.go|\
|
||||
channels/web/oauth_test.go|\
|
||||
channels/web/saml.go|\
|
||||
channels/web/web_test.go|\
|
||||
cmd/mattermost/commands/cmdtestlib.go|\
|
||||
cmd/mattermost/commands/db.go|\
|
||||
|
||||
@@ -155,7 +155,9 @@ func completeSaml(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
c.LogErrorByCode(err)
|
||||
break
|
||||
}
|
||||
c.App.AddDirectChannels(c.AppContext, teamId, user)
|
||||
if err = c.App.AddDirectChannels(c.AppContext, teamId, user); err != nil {
|
||||
c.LogErrorByCode(err)
|
||||
}
|
||||
}
|
||||
case model.OAuthActionEmailToSSO:
|
||||
if err = c.App.RevokeAllSessions(c.AppContext, user.Id); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user