Browse Source

removed debig line and changed to return empty slice

pull/12/head
David Haukeness 5 years ago
parent
commit
c621de57ca
No known key found for this signature in database
GPG Key ID: A7F1091956853EF9
  1. 2
      main.go

2
main.go

@ -226,7 +226,7 @@ func getCurrentChannelMembership() []string { @@ -226,7 +226,7 @@ func getCurrentChannelMembership() []string {
if channel.Name != "" {
t := k.NewTeam(channel.Name)
if testVar, err := t.MemberList(); err != nil {
printToView("Feed", fmt.Sprintf("Error getting member list - %+v", err))
return rs // then this isn't a team, its a PM or there was an error in the API call
} else {
for _, m := range testVar.Result.Members.Owners {
rs = append(rs, fmt.Sprintf("%+v", m.Username))

Loading…
Cancel
Save