Remove uneeded check

This commit is contained in:
Amarpreet Minhas 2020-01-29 21:21:38 -05:00
parent f51c5a78ea
commit 8cb7407561

View file

@ -59,13 +59,6 @@ func postComment(w http.ResponseWriter, r *http.Request) {
render.JSON(w, r, returnMessage)
return
}
if newComment.Parent == "" {
returnMessage.Message = "title is required"
returnMessage.Error = true
w.WriteHeader(http.StatusBadRequest)
render.JSON(w, r, returnMessage)
return
}
if newComment.Content == "" {
returnMessage.Message = "content is required"
returnMessage.Error = true