aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-04-22 15:00:27 +0200
committerMichael Muré <batolettre@gmail.com>2021-04-22 15:00:27 +0200
commit7edb6a2c570f217458cb939e983be1d508870952 (patch)
tree5541756817f5d3fd9313abc66948f4e52d53f806 /cache
parentd20bc3c254311e8968f8ad0381cbf774b2f7cfc1 (diff)
downloadgit-bug-7edb6a2c570f217458cb939e983be1d508870952.tar.gz
cache: fix empty actors/participants in the index
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_excerpt.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index 152bdacf..342a0553 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -59,16 +59,12 @@ func (l LegacyAuthorExcerpt) DisplayName() string {
func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
participantsIds := make([]entity.Id, 0, len(snap.Participants))
for _, participant := range snap.Participants {
- if _, ok := participant.(*identity.Identity); ok {
- participantsIds = append(participantsIds, participant.Id())
- }
+ participantsIds = append(participantsIds, participant.Id())
}
actorsIds := make([]entity.Id, 0, len(snap.Actors))
for _, actor := range snap.Actors {
- if _, ok := actor.(*identity.Identity); ok {
- actorsIds = append(actorsIds, actor.Id())
- }
+ actorsIds = append(actorsIds, actor.Id())
}
e := &BugExcerpt{