Skip to content

Commit

Permalink
fix: linting flags
Browse files Browse the repository at this point in the history
  • Loading branch information
teslashibe committed Aug 1, 2024
1 parent 3ccec6a commit a910a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scrapers/twitter/tweets.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func ScrapeTweetsForSentiment(query string, count int, model string) (string, st
}
} else {
tweet = TweetResult{
Tweet: tweetResult.Tweet,
Tweet: &tweetResult.Tweet,
Error: nil,
}
}
Expand All @@ -104,7 +104,7 @@ func ScrapeTweetsForSentiment(query string, count int, model string) (string, st
twitterScraperTweets := make([]*twitterscraper.TweetResult, len(tweets))
for i, tweet := range tweets {
twitterScraperTweets[i] = &twitterscraper.TweetResult{
Tweet: tweet.Tweet,
Tweet: *tweet.Tweet,
Error: tweet.Error,
}
}
Expand Down Expand Up @@ -145,7 +145,7 @@ func ScrapeTweetsByQuery(query string, count int) ([]*TweetResult, error) {
}
} else {
tweet = TweetResult{
Tweet: tweetResult.Tweet,
Tweet: &tweetResult.Tweet,
Error: nil,
}
}
Expand Down

0 comments on commit a910a76

Please sign in to comment.