horizoncd/horizon

View on GitHub
pkg/user/dao/dao.go

Summary

Maintainability
A
40 mins
Test Coverage

Method dao.UpdateByID has 6 return statements (exceeds 4 allowed).
Open

func (d *dao) UpdateByID(ctx context.Context, id uint, newUser *models.User) (*models.User, error) {
    var user *models.User
    err := d.db.
        Transaction(
            func(tx *gorm.DB) error {
Severity: Major
Found in pkg/user/dao/dao.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status