mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Fix errcheck issue for saml.go file (#28546)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
parent
2b723099a6
commit
a671f80d2c
2 changed files with 3 additions and 2 deletions
|
|
@ -90,7 +90,6 @@ issues:
|
|||
channels/api4/reaction_test.go|\
|
||||
channels/api4/remote_cluster.go|\
|
||||
channels/api4/role_test.go|\
|
||||
channels/api4/saml.go|\
|
||||
channels/api4/scheme.go|\
|
||||
channels/api4/scheme_test.go|\
|
||||
channels/api4/shared_channel.go|\
|
||||
|
|
|
|||
|
|
@ -46,7 +46,9 @@ func getSamlMetadata(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
w.Header().Set("Content-Type", "application/xml")
|
||||
w.Header().Set("Content-Disposition", "attachment; filename=\"metadata.xml\"")
|
||||
w.Write([]byte(metadata))
|
||||
if _, err := w.Write([]byte(metadata)); err != nil {
|
||||
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
|
||||
func parseSamlCertificateRequest(r *http.Request, maxFileSize int64) (*multipart.FileHeader, *model.AppError) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue