Skip to content

Commit ce660f8

Browse files
authored
fix: add missing return when template version is not found (#1402)
1 parent f4da5d4 commit ce660f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/organizations.go

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func (api *api) postTemplatesByOrganization(rw http.ResponseWriter, r *http.Requ
180180
httpapi.Write(rw, http.StatusNotFound, httpapi.Response{
181181
Message: "template version does not exist",
182182
})
183+
return
183184
}
184185
if err != nil {
185186
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{

0 commit comments

Comments
 (0)