mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Add a missing return.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user