Fix steam & lint (#630)

* fix

* make lint happy
This commit is contained in:
DreamZero
2023-03-20 11:57:46 +08:00
committed by GitHub
parent 6474b36ccd
commit e9eb4c5602
7 changed files with 35 additions and 39 deletions

View File

@@ -236,10 +236,7 @@ func (p *imgpool) add(ctx *zero.Ctx, imgtype string, id int64) error {
return err
}
// 添加插画到对应的数据库table
if err := p.db.Insert(imgtype, illust); err != nil {
return err
}
return nil
return p.db.Insert(imgtype, illust)
}
func (p *imgpool) remove(imgtype string, id int64) error {