Add golangci-lint workflow (#4999)

* fix lint workflow

* add golang lint

* close http response body
This commit is contained in:
andrew_li
2022-06-29 11:58:36 +08:00
committed by GitHub
parent f1e06466df
commit f289795312
141 changed files with 311 additions and 592 deletions

View File

@@ -707,7 +707,6 @@ func (h *openpitrixHandler) DescribeApplication(req *restful.Request, resp *rest
}
resp.WriteEntity(app)
return
}
func (h *openpitrixHandler) DeleteApplication(req *restful.Request, resp *restful.Response) {
@@ -988,7 +987,7 @@ func (h *openpitrixHandler) CreateAttachment(req *restful.Request, resp *restful
api.HandleBadRequest(resp, nil, err)
return
}
data, err := ioutil.ReadAll(f)
data, _ := ioutil.ReadAll(f)
f.Close()
att, err = h.openpitrix.CreateAttachment(data)