Miscellaneous tweaks and fixes (#2223)

* Miscellaneous tweaks and fixes

Mostly these were found by running golangci-lint with a bunch of linters
(more than the default set) enabled.

* fmt.Fprint -> fmt.Fprintln where possible

* Remove "nolint:staticcheck" for now
This commit is contained in:
Carlo Teubner authored and GitHub committed 2025-10-28 15:10:32 +11:00
1 parent b12cb33918
commit fc4b3637bb
11 files changed
+105 -108

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ func serve() {
log.SetOutput(f)
}
log.Printf("*************** starting server ***************")
log.Print("*************** starting server ***************")
if gSocketProt == "unix" {
setUserUmask()
@@ -49,7 +49,7 @@ func listen(l net.Listener) {
if err != nil {
select {
case <-gQuitChan:
log.Printf("*************** closing server ***************")
log.Print("*************** closing server ***************")
return
default:
log.Printf("accepting connection: %s", err)