1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 06:27:24 +00:00

removed debig line and changed to return empty slice

This commit is contained in:
2019-10-16 13:26:31 -06:00
parent de2eb36817
commit c621de57ca

View File

@ -226,7 +226,7 @@ func getCurrentChannelMembership() []string {
if channel.Name != "" { if channel.Name != "" {
t := k.NewTeam(channel.Name) t := k.NewTeam(channel.Name)
if testVar, err := t.MemberList(); err != nil { 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 { } else {
for _, m := range testVar.Result.Members.Owners { for _, m := range testVar.Result.Members.Owners {
rs = append(rs, fmt.Sprintf("%+v", m.Username)) rs = append(rs, fmt.Sprintf("%+v", m.Username))