Return StatusNotFound if object is nil and StatusBadRequest if error
|
// @todo Create utility function for the NotFound/BadRequest construct |
|
// @body Return StatusNotFound if object is nil and StatusBadRequest if error |
|
objective, err = getObjectiveFromRequest(w, r) |
|
if err != nil { |
|
httputil.JSONResponseWithStatus(w, r, nil, err, http.StatusBadRequest) |
|
return |
This issue was generated by todo based on a @todo
comment in bee4292. It's been assigned to @oxisto because they committed the code.