dstpierre/gosaas

View on GitHub
data/postgres/users.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Users.GetDetail has 5 return statements (exceeds 4 allowed).
Open

func (u *Users) GetDetail(id int64) (*model.Account, error) {
    account := &model.Account{}
    row := u.DB.QueryRow("SELECT * FROM gosaas_accounts WHERE id = $1", id)
    err := row.Scan(&account.ID,
        &account.Email,
Severity: Major
Found in data/postgres/users.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status