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

Create utility function for the NotFound/BadRequest construct #7

Description

@todo

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions