devrelcollective/xela

View on GitHub
actions/sponsorships.go

Summary

Maintainability
A
1 hr
Test Coverage

Method SponsorshipsResource.Update has 6 return statements (exceeds 4 allowed).
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"))
Severity: Major
Found in actions/sponsorships.go - About 40 mins to fix

    Method SponsorshipsResource.Create has 5 return statements (exceeds 4 allowed).
    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 {
    Severity: Major
    Found in actions/sponsorships.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status