From d1615ac81726b1842b229ed806bd90a2505b35b1 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Thu, 25 Jun 2026 18:36:23 +0000 Subject: [PATCH] fix(vet): redundant newline in wish.Println premium-flow messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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 --- cmd/agentbbs/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/agentbbs/main.go b/cmd/agentbbs/main.go index 8a6a574..de57789 100644 --- a/cmd/agentbbs/main.go +++ b/cmd/agentbbs/main.go @@ -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]: ") line, err := readLine(s, in) 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 } @@ -978,7 +978,7 @@ func (a *app) offerPremium(s ssh.Session, in *bufio.Reader, u *store.User) { if err != nil { 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 } // Remember the payment id so a later connect can confirm settlement.