ReanGD/go-web-search

View on GitHub
content/rw_func.go

Summary

Maintainability
A
35 mins
Test Coverage

Method DBrw.Transaction has 5 return statements (exceeds 4 allowed).
Open

func (db *DBrw) Transaction(fn func(*DBrw) error) error {
    tr := db.DB.Begin()
    if tr.Error != nil {
        return fmt.Errorf("create transaction, message: %s", tr.Error)
    }
Severity: Major
Found in content/rw_func.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status