server.go starts listenAndServe in an anonymous function (closes #162) #186

Merged
clawbot merged 1 commits from issue-162-go-anon-func into next 2026-10-19 08:24:50 +02:00
1 Commits
Author SHA1 Message Date
sneak 2e000624f4 server.go starts listenAndServe in an anonymous function (closes #162)
check / check (push) Waiting to run
The server's OnStart hook started the HTTP listener with
`go s.listenAndServe()`; the Go style guide asks for a function called
with `go` to be wrapped in an anonymous function, so it is now
`go func() { s.listenAndServe() }()`. No other go statement in the Go
code called a function directly. Nothing the server does changed.

Model: opus-5-5
2026-10-19 06:22:36 +00:00