[goimports] Changed formatting.

This commit is contained in:
Martin Dosch 2019-08-30 12:39:55 +02:00
parent 03c8373549
commit 27e7e0083c

View file

@ -13,8 +13,8 @@ import (
"strings"
"time"
"github.com/mmcdole/gofeed"
"github.com/jaytaylor/html2text"
"github.com/mmcdole/gofeed"
)
// Get new articles for specified feed.
@ -72,7 +72,7 @@ func getArticles(feedURL string, max int, noExcerpt bool, filter []string) (stri
h := fnv.New32a()
_, err := h.Write([]byte(feedURL))
if err != nil {
log.Fatal("Error: Can't create hash for", feedURL + ":", err)
log.Fatal("Error: Can't create hash for", feedURL+":", err)
}
if _, err := os.Stat(cachePath); os.IsNotExist(err) {
err = os.MkdirAll(cachePath, 0700)