actions/sponsorships.go
Method SponsorshipsResource.Update
has 6 return statements (exceeds 4 allowed). Open
Open
func (v SponsorshipsResource) 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 SponsorshipsResource.Create
has 5 return statements (exceeds 4 allowed). Open
Open
func (v SponsorshipsResource) Create(c buffalo.Context) error {
// Get the DB connection from the context
tx, ok := c.Value("tx").(*pop.Connection)
if !ok {