GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Add missing return in error branch.

parent 471ab071
...@@ -160,6 +160,7 @@ func BridgeState(w http.ResponseWriter, r *http.Request) { ...@@ -160,6 +160,7 @@ func BridgeState(w http.ResponseWriter, r *http.Request) {
if err != nil { if err != nil {
log.Printf("Bug: %s", err) log.Printf("Bug: %s", err)
http.Error(w, "failed to marshal test tesult", http.StatusInternalServerError) http.Error(w, "failed to marshal test tesult", http.StatusInternalServerError)
return
} }
SendJSONResponse(w, string(jsonResult)) SendJSONResponse(w, string(jsonResult))
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment