Remove uneeded check
This commit is contained in:
parent
f51c5a78ea
commit
8cb7407561
1 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
|
|
Reference in a new issue