From c98cbe81ed0f72c49b6227462b71d18ebd595809 Mon Sep 17 00:00:00 2001 From: sunglocto Date: Thu, 4 Sep 2025 18:02:53 +0100 Subject: [PATCH] Format code --- main.go | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/main.go b/main.go index 3432d1e..7be651b 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "encoding/xml" "errors" "fmt" - _ "image/color" "io" "log" "math/rand/v2" @@ -29,13 +28,9 @@ import ( "github.com/shreve/musicwand/pkg/mpris" // xmpp - required - _ "mellium.im/xmpp/disco" "mellium.im/xmpp/jid" "mellium.im/xmpp/muc" - _ "mellium.im/xmpp/stanza" oasisSdk "pain.agency/oasis-sdk" - // gui - optional - // catppuccin "github.com/mbaklor/fyne-catppuccin" // TODO: integrated theme switcher ) @@ -81,14 +76,14 @@ type CustomMultiLineEntry struct { } func isUTF8Locale() bool { - localeVars := []string{"LC_ALL", "LC_CTYPE", "LANG"} - for _, envVar := range localeVars { - value := os.Getenv(envVar) - if strings.Contains(strings.ToLower(value), "utf-8") { - return true - } - } - return false + localeVars := []string{"LC_ALL", "LC_CTYPE", "LANG"} + for _, envVar := range localeVars { + value := os.Getenv(envVar) + if strings.Contains(strings.ToLower(value), "utf-8") { + return true + } + } + return false } func NewCustomMultiLineEntry() *CustomMultiLineEntry { @@ -435,7 +430,7 @@ func main() { notifications = config.Notifications if isUTF8Locale() { - replyBodyIcon = "↱" + replyBodyIcon = "↱" replyNameIcon = "→ " }