actions/proposals.go
Method ProposalsResource.Update
has 6 return statements (exceeds 4 allowed). Open
Open
func (v ProposalsResource) Update(c buffalo.Context) error {
// Get the DB connection from the context
tx, ok := c.Value("tx").(*pop.Connection)
if !ok {
return errors.WithStack(errors.New("no transaction found"))
Method ProposalsResource.Edit
has 6 return statements (exceeds 4 allowed). Open
Open
func (v ProposalsResource) Edit(c buffalo.Context) error {
// Get the DB connection from the context
// tx, ok := c.Value("tx").(*pop.Connection)
// if !ok {
// return errors.WithStack(errors.New("no transaction found"))
Method ProposalsResource.New
has 5 return statements (exceeds 4 allowed). Open
Open
func (v ProposalsResource) New(c buffalo.Context) error {
// return c.Render(200, r.Auto(c, &models.Proposal{}))
// }
// func NewProposal(c buffalo.Context) error {
Method ProposalsResource.Create
has 5 return statements (exceeds 4 allowed). Open
Open
func (v ProposalsResource) Create(c buffalo.Context) error {
// Get the DB connection from the context
tx, ok := c.Value("tx").(*pop.Connection)
if !ok {