Skip to content

Commit

Permalink
fix: team local errcheck issues (mattermost#28538)
Browse files Browse the repository at this point in the history
Co-authored-by: Mattermost Build <[email protected]>
  • Loading branch information
RS-labhub and mattermost-build authored Oct 7, 2024
1 parent e996879 commit 9e0d629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion server/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|\
Expand Down
4 changes: 3 additions & 1 deletion server/channels/api4/team_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9e0d629

Please sign in to comment.