Browse Source

fix incorrect empty target ids in Event.TargetIDs()

master
Gisle Aune 4 years 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 { func (event *Event) TargetIDs() []string {
ids := make([]string, len(event.targets))
ids := make([]string, 0, len(event.targets))
for _, target := range event.targets { for _, target := range event.targets {
ids = append(ids, target.ID()) ids = append(ids, target.ID())
} }

Loading…
Cancel
Save