From 8f217f1278dedb1aa0a76214b8337aef8609276c Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sun, 23 Nov 2025 14:45:25 -0500 Subject: [PATCH] refactor(cmd): replace `fmt.Fprint` with `io.WriteString` --- cmd/messages_list.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/messages_list.go b/cmd/messages_list.go index 80e934d..1fed024 100644 --- a/cmd/messages_list.go +++ b/cmd/messages_list.go @@ -129,8 +129,7 @@ func (ml *messagesList) drawMessage(writer io.Writer, message discord.Message) { } // Tags with no region ID ([""]) don't start new regions. They can therefore be used to mark the end of a region. - fmt.Fprint(writer, `[""]`) - fmt.Fprintln(writer) + io.WriteString(writer, "[\"\"]\n") } func (ml *messagesList) formatTimestamp(ts discord.Timestamp) string {