[MM-20723] Add golint for plugin package to golangci (#13090)

This commit is contained in:
Ben Schumacher
2019-12-05 20:31:53 +01:00
committed by GitHub
parent d12bf77f53
commit 5122b9e292
12 changed files with 117 additions and 115 deletions

View File

@@ -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())