mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 14:27:27 +00:00
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:
parent
e5e8e75553
commit
d1615ac817
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue