mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
errcheck issues fixed (#28643)
This commit is contained in:
parent
9eb424a252
commit
d6343832d9
@ -93,7 +93,6 @@ issues:
|
|||||||
channels/api4/team_local.go|\
|
channels/api4/team_local.go|\
|
||||||
channels/api4/team_test.go|\
|
channels/api4/team_test.go|\
|
||||||
channels/api4/user.go|\
|
channels/api4/user.go|\
|
||||||
channels/api4/user_local.go|\
|
|
||||||
channels/api4/user_test.go|\
|
channels/api4/user_test.go|\
|
||||||
channels/api4/webhook_test.go|\
|
channels/api4/webhook_test.go|\
|
||||||
channels/api4/websocket_test.go|\
|
channels/api4/websocket_test.go|\
|
||||||
|
@ -229,7 +229,9 @@ func localGetUsers(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(js)
|
if _, err := w.Write(js); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func localGetUsersByIds(c *Context, w http.ResponseWriter, r *http.Request) {
|
func localGetUsersByIds(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
@ -269,7 +271,9 @@ func localGetUsersByIds(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(js)
|
if _, err := w.Write(js); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func localGetUser(c *Context, w http.ResponseWriter, r *http.Request) {
|
func localGetUser(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
@ -435,5 +439,7 @@ func localGetUploadsForUser(c *Context, w http.ResponseWriter, r *http.Request)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(js)
|
if _, err := w.Write(js); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user