Fix lint errors

This commit is contained in:
Jan-Lukas Else 2021-05-10 17:48:00 +02:00
parent a21f48c309
commit c8c848daf5
3 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ func cacheOutlines(blog string, outlines []*opml.Outline) {
DateCreated: time.Now().UTC(),
Outlines: outlines,
})
cachePersistently("blogroll_"+blog, opmlBuffer.Bytes())
_ = cachePersistently("blogroll_"+blog, opmlBuffer.Bytes())
}
func loadOutlineCache(blog string) []*opml.Outline {

View File

@ -126,7 +126,7 @@ func getBlogStats(blog string) (data map[string]interface{}, err error) {
func cacheBlogStats(blog string, stats map[string]interface{}) {
jb, _ := json.Marshal(stats)
cachePersistently("blogstats_"+blog, jb)
_ = cachePersistently("blogstats_"+blog, jb)
}
func loadBlogStatsCache(blog string) (stats map[string]interface{}) {
@ -142,5 +142,5 @@ func loadBlogStatsCache(blog string) (stats map[string]interface{}) {
}
func resetBlogStats(blog string) {
clearPersistentCache("blogstats_" + blog)
_ = clearPersistentCache("blogstats_" + blog)
}

View File

@ -17,7 +17,7 @@ func retrievePersistentCache(key string) (data []byte, err error) {
} else if err != nil {
return nil, err
} else {
row.Scan(&data)
err = row.Scan(&data)
return data, err
}
}