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

Create utility function for the NotFound/BadRequest construct #7

Open
todo bot opened this issue Aug 14, 2019 · 0 comments
Open

Create utility function for the NotFound/BadRequest construct #7

todo bot opened this issue Aug 14, 2019 · 0 comments
Assignees

Comments

@todo
Copy link

todo bot commented Aug 14, 2019

Return StatusNotFound if object is nil and StatusBadRequest if error


okr2go/rest.go

Lines 36 to 41 in bee4292

// @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.
@todo todo bot added the todo 🗒️ label Aug 14, 2019
@todo todo bot assigned oxisto Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant