mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 14:59:03 +00:00
bunch of probably useless micro optimisation
This commit is contained in:
@@ -75,8 +75,8 @@ func (api *WebAPI) TaskCreate(r *Request) {
|
||||
if err != nil {
|
||||
r.Json(CreateTaskResponse{
|
||||
Ok: false,
|
||||
Message: err.Error(), //todo: hide sensitive error?
|
||||
}, 500)
|
||||
Message: err.Error(),
|
||||
}, 400)
|
||||
} else {
|
||||
r.OkJson(CreateTaskResponse{
|
||||
Ok: true,
|
||||
|
||||
Reference in New Issue
Block a user