ReanGD/go-web-search

View on GitHub
content/impl_host.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func (db *DBrw) AddHost(host *proxy.Host, baseURL string) (int64, error) {
    var id int64
    err := db.Transaction(func(tr *DBrw) error {
        tblHost := host.GetTable()
        err := tr.Create(tblHost).Error
Severity: Major
Found in content/impl_host.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status