diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-20 11:25:19 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-20 15:00:50 +0100 |
| commit | 3aeda47a25a0a2af0eb07ead31e00a837d470526 (patch) | |
| tree | 602f6a5541f452ac2df1d41851267d9722ca407a /cmd | |
| parent | e5084be1f7a72604af917401e9bdedba4654de70 (diff) | |
All: Use fmt.Fprintf instead of WriteString with Sprintf
Caught by golangci-lint (staticcheck)
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/eduvpn-cli/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/eduvpn-cli/main.go b/cmd/eduvpn-cli/main.go index db255cd..40edf5e 100644 --- a/cmd/eduvpn-cli/main.go +++ b/cmd/eduvpn-cli/main.go @@ -39,7 +39,7 @@ func getProfileInteractive(profiles *srvtypes.Profiles, data any) (string, error var options []string i := 0 for k, v := range profiles.Map { - ps.WriteString(fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en"))) + fmt.Fprintf(&ps, "\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en")) options = append(options, k) i++ } |
