Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 6, 2024
1 parent 6e5ef19 commit d947dbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/collections/infra/mysql_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,10 @@ func (r mysqlRepo) reCountSubjectCollection(ctx context.Context, subjectID model

var updater = make([]field.AssignExpr, 0, 5)
for _, count := range counts {
switch collection.SubjectCollection(count.Type) { //nolint:exhaustive
switch collection.SubjectCollection(count.Type) {
case collection.SubjectCollectionAll:
continue

case collection.SubjectCollectionDropped:
updater = append(updater, r.q.Subject.Dropped.Value(count.Total))

Expand Down

0 comments on commit d947dbb

Please sign in to comment.