Fix a bunch of not-checking-error lints

This commit is contained in:
Eli Ribble 2026-05-04 20:29:02 +00:00
parent 114aec73ed
commit 5f3fcc2b3e
No known key found for this signature in database
14 changed files with 124 additions and 34 deletions

View file

@ -208,7 +208,10 @@ func main() {
platform.WaitForExit()
log.Info().Msg("Shutdown complete")
os.Stderr.Sync()
err = os.Stderr.Sync()
if err != nil {
panic("can't sync stderr")
}
}
func LoggerMiddleware(logger *zerolog.Logger) func(next http.Handler) http.Handler {
return func(next http.Handler) http.Handler {