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

Commit

Permalink
Merge pull request #55 from linksmart/notification_error_fixes
Browse files Browse the repository at this point in the history
added return statements on failure
  • Loading branch information
farshidtz authored Jun 21, 2021
2 parents 84b060d + f99542e commit dfc6bbf
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 dfc6bbf

Please sign in to comment.