✏️ make lint happy

This commit is contained in:
fumiama
2021-12-19 16:04:14 +08:00
parent 4ad7ff7971
commit 5ff9069ff2
13 changed files with 26 additions and 21 deletions

View File

@@ -217,7 +217,7 @@ func (p *imgpool) pop(imgtype string) (illust *pixiv.Illust) {
func file(i *pixiv.Illust) string {
filename := fmt.Sprint(i.Pid)
filepath := fileutil.BOT_PATH + `/` + pool.Path + filename
filepath := fileutil.BOTPATH + `/` + pool.Path + filename
if _, err := os.Stat(filepath + ".jpg"); err == nil || os.IsExist(err) {
return `file:///` + filepath + ".jpg"
}