fix(vet): redundant newline in wish.Println premium-flow messages

`go test ./...` / `go vet ./...` fail on `wish.Println(… "…\n")` — Println
already appends a newline. Pre-existing on main (its CI is red for the same two
lines); surfaced here. Switched both to `wish.Print` with an explicit trailing
"\n\n" so output bytes are unchanged and vet is satisfied.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-06-25 18:36:23 +00:00
parent e5e8e75553
commit d1615ac817

View file

@ -968,7 +968,7 @@ func (a *app) offerPremium(s ssh.Session, in *bufio.Reader, u *store.User) {
wish.Print(s, "\n Become a Founding member now? Type \"yes\" for a payment address [no]: ") wish.Print(s, "\n Become a Founding member now? Type \"yes\" for a payment address [no]: ")
line, err := readLine(s, in) line, err := readLine(s, in)
if err != nil || !isYes(line) { if err != nil || !isYes(line) {
wish.Println(s, "\n No problem — you're a free member. Want it later? Re-run: ssh join@"+a.host+"\n") wish.Print(s, "\n No problem — you're a free member. Want it later? Re-run: ssh join@"+a.host+"\n\n")
return return
} }
@ -978,7 +978,7 @@ func (a *app) offerPremium(s ssh.Session, in *bufio.Reader, u *store.User) {
if err != nil { if err != nil {
log.Error("create premium charge", "err", err) log.Error("create premium charge", "err", err)
} }
wish.Println(s, "\n Payment is temporarily unavailable — please try again shortly.\n") wish.Print(s, "\n Payment is temporarily unavailable — please try again shortly.\n\n")
return return
} }
// Remember the payment id so a later connect can confirm settlement. // Remember the payment id so a later connect can confirm settlement.