From e12ec697e623d1f37bb2fc18bcccc5f3ea9dcc92 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: Mon, 17 Feb 2025 23:20:16 +0900 Subject: [PATCH] chore: make lint happy --- plugin/aichat/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/aichat/main.go b/plugin/aichat/main.go index 04e297d3..6b67069f 100644 --- a/plugin/aichat/main.go +++ b/plugin/aichat/main.go @@ -283,7 +283,11 @@ func init() { return } defer f.Close() - f.WriteString("PLACEHOLDER") + _, err = f.WriteString("PLACEHOLDER") + if err != nil { + ctx.SendChain(message.Text("ERROR: ", err)) + return + } noreplyat = true } else { _ = os.Remove(fp)