Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
added return statements on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreekantha Devasya committed Jun 21, 2021
1 parent 84b060d commit f99542e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions notification/sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ func (a *SSEAPI) SubscribeEvent(w http.ResponseWriter, req *http.Request) {
diff, err := parseQueryParameters(req)
if err != nil {
catalog.ErrorResponse(w, http.StatusBadRequest, err)
return
}
eventTypes, err := parsePath(req)
if err != nil {
catalog.ErrorResponse(w, http.StatusBadRequest, err)
return
}
flusher, ok := w.(http.Flusher)
if !ok {
Expand Down

0 comments on commit f99542e

Please sign in to comment.