diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-09-01 00:33:47 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-09-01 01:45:17 -0600 |
commit | d26030ecbc2d0baa614ff31e8c0c28e98e1d70ab (patch) | |
tree | 295604dd1baf4cb3231628b392b530aad16d58cc /bin-src/httpd.go | |
parent | f27db0f7772b3d160e0afececc5b30425ebb2d9b (diff) |
Use golangci-lint to modernize my Go
Diffstat (limited to 'bin-src/httpd.go')
-rw-r--r-- | bin-src/httpd.go | 3 |
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) } } |