[MM-61076] Fix errcheck issues in server/channels/web/saml.go (#30612)

Co-authored-by: Claude <noreply@anthropic.com>
Этот коммит содержится в:
Ben Schumacher
2025-04-15 09:52:28 +02:00
коммит произвёл GitHub
родитель b8ad438c0a
Коммит b7f89984db
2 изменённых файлов: 3 добавлений и 2 удалений

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

@@ -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 {