From ce660f8bbcee6a25d842eb332d5599525dbffd2c Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 11 May 2022 17:58:22 -0500 Subject: [PATCH] fix: add missing return when template version is not found (#1402) --- coderd/organizations.go | 1 + 1 file changed, 1 insertion(+) diff --git a/coderd/organizations.go b/coderd/organizations.go index 686b526fa2..1796c8f985 100644 --- a/coderd/organizations.go +++ b/coderd/organizations.go @@ -180,6 +180,7 @@ func (api *api) postTemplatesByOrganization(rw http.ResponseWriter, r *http.Requ httpapi.Write(rw, http.StatusNotFound, httpapi.Response{ Message: "template version does not exist", }) + return } if err != nil { httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{