From 1bdf8c048fdc374a50609cf78751c72d57f4a992 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Sat, 1 Jun 2019 10:40:31 +0200 Subject: [PATCH] Removed commented out code. --- getArticles.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/getArticles.go b/getArticles.go index e8b9eca..6b11e13 100644 --- a/getArticles.go +++ b/getArticles.go @@ -250,19 +250,6 @@ func getArticles(feedURL string, max int, noExcerpt bool, filter []string) (stri } } - // To make the message look not so bloated we remove double newlines. - // Split the article description/content into fragments between double newlines. - // fragments := strings.Split(description, "\n\n") - // Empty article description/content - // description = "" - // Fill article description/content with the fragments separated by one newline. - // for _, line := range fragments { - // Only if the only content is not empty. - // if line != "" { - // description = description + line + "\n" - // } - //} - // Only append article link if it is not yet contained in description (e.g. read more: URL). if strings.Contains(description, article.Link) == true { // Replace article link with URL cleaned from redirects and trackers.