horizoncd/horizon

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

Summary

Maintainability
A
40 mins
Test Coverage

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

func (d *dao) UpdateApp(ctx context.Context,
    clientID string, app models.OauthApp) (*models.OauthApp, error) {
    var appInDb models.OauthApp
    var err error
    if err = d.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error {
Severity: Major
Found in pkg/oauth/dao/dao.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status