1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-15 23:54:29 +02:00

Revert "MM-49703: Bump to Go 1.19 (#4489)" (#4499) (#4527)

This reverts commit 2d0dde21dd.

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
This commit is contained in:
Agniva De Sarker
2023-01-31 00:28:05 +05:30
committed by GitHub
parent 345ff01539
commit 13552b126e
34 changed files with 62 additions and 65 deletions

View File

@ -220,7 +220,7 @@ func stringResponse(w http.ResponseWriter, message string) {
_, _ = fmt.Fprint(w, message)
}
func jsonStringResponse(w http.ResponseWriter, code int, message string) { //nolint:unparam
func jsonStringResponse(w http.ResponseWriter, code int, message string) {
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) { //nolint:unparam
func setResponseHeader(w http.ResponseWriter, key string, value string) {
header := w.Header()
if header == nil {
return