Browse Source

fix incorrect empty target ids in Event.TargetIDs()

master
Gisle Aune 1 year ago
parent
commit
1372669042
  1. 2
      event.go

2
event.go

@ -173,7 +173,7 @@ func (event *Event) StatusTarget() *Status {
}
func (event *Event) TargetIDs() []string {
ids := make([]string, len(event.targets))
ids := make([]string, 0, len(event.targets))
for _, target := range event.targets {
ids = append(ids, target.ID())
}

Loading…
Cancel
Save