mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: Add linter rule to catch missing return after http writes (#2702)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user