Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5d1b62

Browse files
committed
Add missing return when template version is not found
1 parent 982769f commit f5d1b62

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)