From b00ce8214479c50e137db73c77b0cc1393c5e7d4 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Thu, 12 Feb 2026 12:03:54 +0100 Subject: All: Run modernize --test --fix --- cmd/eduvpn-cli/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/eduvpn-cli/main.go') diff --git a/cmd/eduvpn-cli/main.go b/cmd/eduvpn-cli/main.go index 2a8ffc1..bb90e40 100644 --- a/cmd/eduvpn-cli/main.go +++ b/cmd/eduvpn-cli/main.go @@ -35,17 +35,17 @@ func openBrowser(data any) { func getProfileInteractive(profiles *srvtypes.Profiles, data any) (string, error) { fmt.Printf("Multiple VPN profiles found. Please select a profile by entering e.g. 1") - ps := "" + var ps strings.Builder var options []string i := 0 for k, v := range profiles.Map { - ps += fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en")) + ps.WriteString(fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en"))) options = append(options, k) i++ } // Show the profiles - fmt.Println(ps) + fmt.Println(ps.String()) var idx int if _, err := fmt.Scanf("%d", &idx); err != nil || idx <= 0 || -- cgit v1.2.3