minor fix

This commit is contained in:
Alexander Sheiko 2020-02-14 16:21:20 +02:00
parent b6c9f13be2
commit ca155dc018

View file

@ -45,7 +45,7 @@ type Result struct {
// GetTweets returns channel with tweets for a given user // GetTweets returns channel with tweets for a given user
func GetTweets(user string, pages int) <-chan *Result { func GetTweets(user string, pages int) <-chan *Result {
channel := make(chan *Result, 0) channel := make(chan *Result)
go func(user string) { go func(user string) {
defer close(channel) defer close(channel)
var lastTweetID string var lastTweetID string