mirror of
https://codeberg.org/scip/anydb.git
synced 2026-02-04 09:20:58 +01:00
fix liniting bugs
This commit is contained in:
@@ -72,7 +72,7 @@ func Runserver(conf *cfg.Config, args []string) error {
|
||||
Wrapper to respond with proper json status, message and code,
|
||||
shall be prepared and called by the handlers directly.
|
||||
*/
|
||||
func JsonStatus(resp http.ResponseWriter, code int, msg string) error {
|
||||
func JsonStatus(resp http.ResponseWriter, code int, msg string) {
|
||||
success := code == http.StatusOK
|
||||
|
||||
resp.Header().Set("Content-Type", "application/json")
|
||||
@@ -84,6 +84,4 @@ func JsonStatus(resp http.ResponseWriter, code int, msg string) error {
|
||||
Message: msg,
|
||||
Success: success,
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user