mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-10 06:10:05 -06:00
drop commented code
This commit is contained in:
committed by
GitHub
parent
f33c524a5d
commit
a1bb47b180
@@ -91,7 +91,6 @@ func InvitationHandler(service svc.Service) func(w http.ResponseWriter, r *http.
|
||||
i := &invitations.Invitation{}
|
||||
err := json.NewDecoder(r.Body).Decode(i)
|
||||
if err != nil {
|
||||
// logger.Debug().Err(err).Interface("body", r.Body).Msg("could not invite user: invalid request body")
|
||||
errorcode.InvalidRequest.Render(w, r, http.StatusBadRequest, fmt.Sprintf("invalid request body: %v", err.Error()))
|
||||
return
|
||||
}
|
||||
@@ -103,7 +102,6 @@ func InvitationHandler(service svc.Service) func(w http.ResponseWriter, r *http.
|
||||
return
|
||||
}
|
||||
|
||||
// w.Header().Set("Content-type", "application/json")
|
||||
render.Status(r, http.StatusCreated)
|
||||
render.JSON(w, r, res)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user