Skip to content
Snippets Groups Projects
Commit c412101f authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

errors are not handled properly

parent a1b6078c
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ func Chandler(w http.ResponseWriter, r *http.Request) { ...@@ -16,7 +16,6 @@ func Chandler(w http.ResponseWriter, r *http.Request) {
} }
country := pkg.GetCountryByCode(vars["country_identifier"], limit) country := pkg.GetCountryByCode(vars["country_identifier"], limit)
c, _ := json.Marshal(country) 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) { ...@@ -12,6 +12,6 @@ func Dhandler(w http.ResponseWriter, r *http.Request) {
pkg.GetDiag(&d) pkg.GetDiag(&d)
marsh, _ := json.Marshal(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) { ...@@ -14,7 +14,7 @@ func Shandler(w http.ResponseWriter, r *http.Request) {
specie := pkg.GetSpecies(vars["speciesKey"]) specie := pkg.GetSpecies(vars["speciesKey"])
s, _ := json.Marshal(specie) s, _ := json.Marshal(specie)
fmt.Fprintln(w, string(s)) _, _ = fmt.Fprintln(w, string(s))
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment