💩👌 make lint happy

This commit is contained in:
源文雨
2022-03-07 23:27:11 +08:00
parent 54c9857219
commit 1ba4722fc7
3 changed files with 9 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ func init() {
if err != nil {
panic(err)
}
db.FindFor(ids, c, "", func() error {
_ = db.FindFor(ids, c, "", func() error {
mu.Lock()
defer mu.Unlock()
eid, err := process.CronTab.AddFunc(c.Cron, inject(id, []byte(c.Cmd)))
@@ -216,6 +216,8 @@ func rmcmd(bot int64, cron string) error {
}
return nil
})
db.Del(bots, "WHERE cron='"+cron+"'")
return err
if err != nil {
return err
}
return db.Del(bots, "WHERE cron='"+cron+"'")
}