You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
MM-49703: Bump to Go 1.19 (#4489)
* MM-49703: Bump to Go 1.19 Also fix some gofmt issues https://mattermost.atlassian.net/browse/MM-49703 * Bump versions in go.mod * Update go.work as well * Bump GolangCI to 1.50.1 * Upgraded to new builder image
This commit is contained in:
@ -220,7 +220,7 @@ func stringResponse(w http.ResponseWriter, message string) {
|
||||
_, _ = fmt.Fprint(w, message)
|
||||
}
|
||||
|
||||
func jsonStringResponse(w http.ResponseWriter, code int, message string) {
|
||||
func jsonStringResponse(w http.ResponseWriter, code int, message string) { //nolint:unparam
|
||||
setResponseHeader(w, "Content-Type", "application/json")
|
||||
w.WriteHeader(code)
|
||||
fmt.Fprint(w, message)
|
||||
@ -232,7 +232,7 @@ func jsonBytesResponse(w http.ResponseWriter, code int, json []byte) {
|
||||
_, _ = w.Write(json)
|
||||
}
|
||||
|
||||
func setResponseHeader(w http.ResponseWriter, key string, value string) {
|
||||
func setResponseHeader(w http.ResponseWriter, key string, value string) { //nolint:unparam
|
||||
header := w.Header()
|
||||
if header == nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user