From 2410a7b3ed07adede8feb9379740d4ab3cfeb791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 7 Feb 2023 16:46:26 +0800 Subject: [PATCH] make lint happy --- plugin/qqwife/command.go | 2 +- plugin/qqwife/favorSystem.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/qqwife/command.go b/plugin/qqwife/command.go index b0d904c8..18453c28 100644 --- a/plugin/qqwife/command.go +++ b/plugin/qqwife/command.go @@ -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 } diff --git a/plugin/qqwife/favorSystem.go b/plugin/qqwife/favorSystem.go index 94d166f6..2f310a8b 100644 --- a/plugin/qqwife/favorSystem.go +++ b/plugin/qqwife/favorSystem.go @@ -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 }