mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 14:08:39 +01:00
[goimports] Changed formatting.
This commit is contained in:
parent
03c8373549
commit
27e7e0083c
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mmcdole/gofeed"
|
|
||||||
"github.com/jaytaylor/html2text"
|
"github.com/jaytaylor/html2text"
|
||||||
|
"github.com/mmcdole/gofeed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Get new articles for specified feed.
|
// Get new articles for specified feed.
|
||||||
|
@ -72,7 +72,7 @@ func getArticles(feedURL string, max int, noExcerpt bool, filter []string) (stri
|
||||||
h := fnv.New32a()
|
h := fnv.New32a()
|
||||||
_, err := h.Write([]byte(feedURL))
|
_, err := h.Write([]byte(feedURL))
|
||||||
if err != nil {
|
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) {
|
if _, err := os.Stat(cachePath); os.IsNotExist(err) {
|
||||||
err = os.MkdirAll(cachePath, 0700)
|
err = os.MkdirAll(cachePath, 0700)
|
||||||
|
|
Loading…
Reference in a new issue