mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 05:17:27 +00:00
removed debig line and changed to return empty slice
This commit is contained in:
2
main.go
2
main.go
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user