Remove unused error returned by GetUpdatesChan.
Syfaro syfaro@huefox.com
Tue, 09 Oct 2018 00:47:19 -0500
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
bot.go
→
bot.go
@@ -378,7 +378,7 @@ return info, err
} // GetUpdatesChan starts and returns a channel for getting updates. -func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) { +func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) UpdatesChannel { ch := make(chan Update, bot.Buffer) go func() {@@ -407,7 +407,7 @@ }
} }() - return ch, nil + return ch } // StopReceivingUpdates stops the go routine which receives updates