~thecashewtrader/atomitter

66fb31087a0239c15907b09846920be4b766487a — thecashewtrader 1 year, 9 months ago 2b3d55c
Remove redundant dependencies
1 files changed, 2 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +2 -2
@@ 22,7 22,7 @@ func main() {
	articles := getArticles()
	client := getTwitterClient()
	tweets := getTweets(client)
	untweetedArticles := getUntweetedArticles(client, articles, tweets, tweetTemplate)
	untweetedArticles := getUntweetedArticles(articles, tweets, tweetTemplate)

	tweetArticles(client, untweetedArticles, tweetTemplate)
}


@@ 105,7 105,7 @@ func getTweets(client *twitter.Client) (tweets []twitter.Tweet) {
	return
}

func getUntweetedArticles(client *twitter.Client, articles []*gofeed.Item, tweets []twitter.Tweet, tweetTemplate *template.Template) (untweetedArticles []*gofeed.Item) {
func getUntweetedArticles(articles []*gofeed.Item, tweets []twitter.Tweet, tweetTemplate *template.Template) (untweetedArticles []*gofeed.Item) {
	untweetedArticles = articles

	for _, tweet := range tweets {