Skip to content

Commit e12ec69

Browse files
committed
chore: make lint happy
1 parent b01d3a4 commit e12ec69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/aichat/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@ func init() {
283283
return
284284
}
285285
defer f.Close()
286-
f.WriteString("PLACEHOLDER")
286+
_, err = f.WriteString("PLACEHOLDER")
287+
if err != nil {
288+
ctx.SendChain(message.Text("ERROR: ", err))
289+
return
290+
}
287291
noreplyat = true
288292
} else {
289293
_ = os.Remove(fp)

0 commit comments

Comments
 (0)