Commit c412101f authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

errors are not handled properly

parent a1b6078c
......@@ -16,7 +16,6 @@ func Chandler(w http.ResponseWriter, r *http.Request) {
}
country := pkg.GetCountryByCode(vars["country_identifier"], limit)
c, _ := json.Marshal(country)
fmt.Fprintln(w, string(c))
_, _ = fmt.Fprintln(w, string(c))
}
\ No newline at end of file
......@@ -12,6 +12,6 @@ func Dhandler(w http.ResponseWriter, r *http.Request) {
pkg.GetDiag(&d)
marsh, _ := json.Marshal(d)
fmt.Fprintln(w, string(marsh))
_, _ = fmt.Fprintln(w, string(marsh))
}
......@@ -14,7 +14,7 @@ func Shandler(w http.ResponseWriter, r *http.Request) {
specie := pkg.GetSpecies(vars["speciesKey"])
s, _ := json.Marshal(specie)
fmt.Fprintln(w, string(s))
_, _ = fmt.Fprintln(w, string(s))
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment