fix: team local errcheck issues (#28538)

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Rohan Sharma
2024-10-07 21:01:13 +02:00
committed by GitHub
co-authored by Mattermost Build
parent e9968792b0
commit 9e0d629ab1
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -107,7 +107,6 @@ issues:
channels/api4/system_local.go|\
channels/api4/system_test.go|\
channels/api4/team.go|\
channels/api4/team_local.go|\
channels/api4/team_test.go|\
channels/api4/upload_test.go|\
channels/api4/usage.go|\
+3 -1
View File
@@ -180,7 +180,9 @@ func localInviteUsersToTeam(c *Context, w http.ResponseWriter, r *http.Request)
return
}
w.Write(js)
if _, err := w.Write(js); err != nil {
c.Logger.Warn("Error while writing response", mlog.Err(err))
}
} else {
var invalidEmailList []string