summaryrefslogtreecommitdiff
path: root/bin-src/httpd.go
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-09-01 00:33:47 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-09-01 01:45:17 -0600
commitd26030ecbc2d0baa614ff31e8c0c28e98e1d70ab (patch)
tree295604dd1baf4cb3231628b392b530aad16d58cc /bin-src/httpd.go
parentf27db0f7772b3d160e0afececc5b30425ebb2d9b (diff)
Use golangci-lint to modernize my Go
Diffstat (limited to 'bin-src/httpd.go')
-rw-r--r--bin-src/httpd.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin-src/httpd.go b/bin-src/httpd.go
index bf776d2..b92f782 100644
--- a/bin-src/httpd.go
+++ b/bin-src/httpd.go
@@ -26,12 +26,13 @@ func mainWithError() error {
return err
}
+ //nolint:gosec // FIXME
return http.Serve(listener, http.FileServer(http.Dir("public")))
}
func main() {
if err := mainWithError(); err != nil {
- fmt.Fprintf(os.Stderr, "%s: error: %v\n", os.Args[0], err)
+ _, _ = fmt.Fprintf(os.Stderr, "%s: error: %v\n", os.Args[0], err)
os.Exit(1)
}
}