Skip to content

Commit

Permalink
httphandlers/addrecords: add return on query parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
micvbang committed Jul 9, 2024
1 parent 5338a92 commit 76ee866
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/httphandlers/addrecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func AddRecords(log logger.Logger, s RecordsAdder) http.HandlerFunc {
if err != nil {
w.WriteHeader(http.StatusBadRequest)
fmt.Fprint(w, err.Error())
return
}
topicName := params[topicNameKey].(string)

Expand Down

0 comments on commit 76ee866

Please sign in to comment.