Add a missing return.

This commit is contained in:
Tom Wilkie
2016-05-20 19:17:15 +01:00
parent d03c5b3bc4
commit 334701f92e

View File

@@ -185,6 +185,7 @@ func apiHandler(rep Reporter) CtxHandlerFunc {
report, err := rep.Report(ctx)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
newVersion.Lock()
defer newVersion.Unlock()