This commit is contained in:
parent
01c9402eac
commit
08e0607a88
@ -103,6 +103,9 @@ func hasChannel(id string, c *context.Context) *model.TwitchChannel {
|
|||||||
fmt.Println("channels :: ", chs)
|
fmt.Println("channels :: ", chs)
|
||||||
|
|
||||||
for _, v := range chs {
|
for _, v := range chs {
|
||||||
|
if v == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if v.ID == id {
|
if v.ID == id {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user