Skip to content

Commit da1b777

Browse files
code-asherkylecarbs
authored andcommitted
fix: add missing return when template version is not found (#1402)
1 parent 8bfa982 commit da1b777

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/organizations.go

Lines changed: 1 addition & 0 deletions
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)