chore: Add linter rule to catch missing return after http writes (#2702)

This commit is contained in:
Steven Masley
2022-06-28 14:13:37 -05:00
committed by GitHub
parent 09cb778620
commit 576aef40f2
3 changed files with 25 additions and 0 deletions
+1
View File
@@ -80,6 +80,7 @@ func (api *API) workspaceAppsProxyPath(rw http.ResponseWriter, r *http.Request)
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
Message: "No agents exist.",
})
return
}
agent := agents[0]