Skip to content
Snippets Groups Projects
Commit 072f1fbc authored by ale's avatar ale
Browse files

Explicitly ignore json.Encode error

parent 3731967d
No related merge requests found
...@@ -33,5 +33,5 @@ func EncodeJSONResponse(w http.ResponseWriter, obj interface{}) { ...@@ -33,5 +33,5 @@ func EncodeJSONResponse(w http.ResponseWriter, obj interface{}) {
w.Header().Set("Cache-Control", "no-store") w.Header().Set("Cache-Control", "no-store")
w.Header().Set("Expires", "-1") w.Header().Set("Expires", "-1")
w.Header().Set("X-Content-Type-Options", "nosniff") w.Header().Set("X-Content-Type-Options", "nosniff")
json.NewEncoder(w).Encode(obj) _ = json.NewEncoder(w).Encode(obj)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment