mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-20723] Add golint for plugin package to golangci (#13090)
This commit is contained in:
@@ -23,8 +23,8 @@ type HelloUserPlugin struct {
|
||||
}
|
||||
|
||||
func (p *HelloUserPlugin) ServeHTTP(context *plugin.Context, w http.ResponseWriter, r *http.Request) {
|
||||
userId := r.Header.Get("Mattermost-User-Id")
|
||||
user, err := p.API.GetUser(userId)
|
||||
userID := r.Header.Get("Mattermost-User-Id")
|
||||
user, err := p.API.GetUser(userID)
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
p.API.LogError(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user