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

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Ben Schumacher
2025-04-15 09:52:28 +02:00
committed by GitHub
co-authored by Claude
parent b8ad438c0a
commit b7f89984db
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -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|\
+3 -1
View File
@@ -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 {