fix: satisfy staticcheck QF1007

This commit is contained in:
ouqiting
2026-04-22 20:28:08 +08:00
parent f125c7ab83
commit 4422f989be

View File

@@ -108,10 +108,7 @@ func timeout(d time.Duration) func(http.Handler) http.Handler {
}
func filteredLogger() func(http.Handler) http.Handler {
color := true
if isWindowsRuntime() {
color = false
}
color := !isWindowsRuntime()
base := &middleware.DefaultLogFormatter{
Logger: log.New(os.Stdout, "", log.LstdFlags),
NoColor: !color,