mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: add missing return when template version is not found (#1402)
This commit is contained in:
@@ -180,6 +180,7 @@ func (api *api) postTemplatesByOrganization(rw http.ResponseWriter, r *http.Requ
|
|||||||
httpapi.Write(rw, http.StatusNotFound, httpapi.Response{
|
httpapi.Write(rw, http.StatusNotFound, httpapi.Response{
|
||||||
Message: "template version does not exist",
|
Message: "template version does not exist",
|
||||||
})
|
})
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
|
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
|
||||||
|
|||||||
Reference in New Issue
Block a user