Fix tests and lint errors, plus a bit of refactor

This commit is contained in:
Deluan
2023-01-22 12:25:35 -05:00
parent 72a12e344e
commit 94cc2b2ac5
14 changed files with 114 additions and 98 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func (p *Router) handleImages(w http.ResponseWriter, r *http.Request) {
return
}
artId, err := DecodeArtworkID(id)
artId, err := decodeArtworkID(id)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return