api/http/handler/templates/template_file.go
Method Handler.templateFile
has 11 return statements (exceeds 4 allowed). Open
Open
func (handler *Handler) templateFile(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
id, err := request.RetrieveNumericRouteVariableValue(r, "id")
if err != nil {
return httperror.BadRequest("Invalid template identifier", err)
}