add missing return

This commit is contained in:
2020-07-10 10:50:56 +02:00
parent 6396c665dd
commit ea2e6fd9c7

View File

@@ -182,6 +182,7 @@ func (wc *WebController) serveListViewer(w http.ResponseWriter, r *http.Request,
if len(list.Files) == 0 { if len(list.Files) == 0 {
w.WriteHeader(http.StatusNotFound) w.WriteHeader(http.StatusNotFound)
wc.templates.Get().ExecuteTemplate(w, "list_not_found", templateData) wc.templates.Get().ExecuteTemplate(w, "list_not_found", templateData)
return
} }
showAds := true showAds := true