mirror of https://github.com/jlelse/GoBlog
Fix lint errors
This commit is contained in:
parent
a21f48c309
commit
c8c848daf5
|
@ -123,7 +123,7 @@ func cacheOutlines(blog string, outlines []*opml.Outline) {
|
||||||
DateCreated: time.Now().UTC(),
|
DateCreated: time.Now().UTC(),
|
||||||
Outlines: outlines,
|
Outlines: outlines,
|
||||||
})
|
})
|
||||||
cachePersistently("blogroll_"+blog, opmlBuffer.Bytes())
|
_ = cachePersistently("blogroll_"+blog, opmlBuffer.Bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadOutlineCache(blog string) []*opml.Outline {
|
func loadOutlineCache(blog string) []*opml.Outline {
|
||||||
|
|
|
@ -126,7 +126,7 @@ func getBlogStats(blog string) (data map[string]interface{}, err error) {
|
||||||
|
|
||||||
func cacheBlogStats(blog string, stats map[string]interface{}) {
|
func cacheBlogStats(blog string, stats map[string]interface{}) {
|
||||||
jb, _ := json.Marshal(stats)
|
jb, _ := json.Marshal(stats)
|
||||||
cachePersistently("blogstats_"+blog, jb)
|
_ = cachePersistently("blogstats_"+blog, jb)
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadBlogStatsCache(blog string) (stats map[string]interface{}) {
|
func loadBlogStatsCache(blog string) (stats map[string]interface{}) {
|
||||||
|
@ -142,5 +142,5 @@ func loadBlogStatsCache(blog string) (stats map[string]interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func resetBlogStats(blog string) {
|
func resetBlogStats(blog string) {
|
||||||
clearPersistentCache("blogstats_" + blog)
|
_ = clearPersistentCache("blogstats_" + blog)
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ func retrievePersistentCache(key string) (data []byte, err error) {
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
row.Scan(&data)
|
err = row.Scan(&data)
|
||||||
return data, err
|
return data, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue