fix(coderd): remove nil ptr deref in watchWorkspace (#10859)

Fixes #10849
This commit is contained in:
Mathias Fredriksson
2023-11-24 15:16:21 +00:00
committed by GitHub
parent 411ce46442
commit e73901cf56
-1
View File
@@ -1219,7 +1219,6 @@ func (api *API) watchWorkspace(rw http.ResponseWriter, r *http.Request) {
Type: codersdk.ServerSentEventTypeError,
Data: codersdk.Response{
Message: "Forbidden reading template of selected workspace.",
Detail: err.Error(),
},
})
return