Fixed cache path.

This commit is contained in:
Martin Dosch 2018-07-15 11:30:14 +02:00
parent 1db063759b
commit e01514d23f

View file

@ -72,7 +72,6 @@ func getArticles(feedURL string, max int) (string, error) {
// ToDo: cachePath should probably be moved to ~/.cache/feed-to-muc
h := fnv.New32a()
h.Write([]byte(feedURL))
cachePath = cachePath + "cache/"
if _, err := os.Stat(cachePath); os.IsNotExist(err) {
err = os.MkdirAll(cachePath, 0700)
if err != nil {