make lint happy

This commit is contained in:
源文雨 2023-02-07 16:46:26 +08:00
parent 7e11924b3f
commit 2410a7b3ed
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ func init() {
canvas.DrawString("("+info[3]+")", 1150, float64(260+50*i)-h)
}
data, err := imgfactory.ToBytes(canvas.Image())
if err = canvas.LoadFontFace(text.BoldFontFile, fontSize); err != nil {
if err != nil {
ctx.SendChain(message.Text("[qqwife]ERROR: ", err))
return
}

View File

@ -190,7 +190,7 @@ func init() {
i++
}
data, err := imgfactory.ToBytes(canvas.Image())
if err = canvas.LoadFontFace(text.BoldFontFile, fontSize); err != nil {
if err != nil {
ctx.SendChain(message.Text("[qqwife]ERROR: ", err))
return
}