Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobsonMT committed Dec 18, 2023
1 parent ac05217 commit 218cd04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/services/ngalert/migration/cond_trans.go
Expand Up @@ -66,7 +66,7 @@ type evaluator struct {
}

//nolint:gocyclo
func transConditions(ctx context.Context, l log.Logger, set dashAlertSettings, orgID int64, store migrationStore.Store) (*condition, error) {
func transConditions(ctx context.Context, l log.Logger, set dashAlertSettings, orgID int64, store migrationStore.Store) (*condition, error) {
// TODO: needs a significant refactor to reduce complexity.
usr := getMigrationUser(orgID)

Expand Down
4 changes: 2 additions & 2 deletions pkg/services/ngalert/migration/models.go
Expand Up @@ -25,7 +25,7 @@ type OrgMigration struct {
orgID int64
silences []*pb.MeshSilence
titleDeduplicatorForFolder func(folderUID string) *migmodels.Deduplicator
channelCache *ChannelCache
channelCache *ChannelCache

// Migrated folder for a dashboard based on permissions. Parent Folder ID -> unique dashboard permission -> custom folder.
permissionsMap map[int64]map[permissionHash]*folder.Folder
Expand Down Expand Up @@ -54,7 +54,7 @@ func (ms *migrationService) newOrgMigration(orgID int64) *OrgMigration {
}
return titlededuplicatorPerFolder[folderUID]
},
channelCache: &ChannelCache{cache: make(map[any]*legacymodels.AlertNotification)},
channelCache: &ChannelCache{cache: make(map[any]*legacymodels.AlertNotification)},

permissionsMap: make(map[int64]map[permissionHash]*folder.Folder),
folderCache: make(map[int64]*folder.Folder),
Expand Down

0 comments on commit 218cd04

Please sign in to comment.