Showing 1 of 5 total issues
Method Controller.Put
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *Controller) Put(w http.ResponseWriter, r *http.Request) {
rp, ok := c.Repository.(Persistable)
if !ok {
RespondWithError(w, http.StatusMethodNotAllowed, "405 Method Not Allowed")
return