fix(recovery): drop unused colorStart assignment

wastedassign failed lint because colorStart was initialized then overwritten without being read.
This commit is contained in:
Michał Furgała 2026-09-29 13:19:38 +02:00
parent 2de0ab9604
commit a83ed03c56

View File

@ -70,11 +70,10 @@ func CustomRecoveryWithWriter(out io.Writer, handle RecoveryFunc) HandlerFunc {
errors.Is(err, http.ErrAbortHandler)
}
if logger != nil {
colorStart, colorReset := "", ""
colorReset := ""
if consoleColorEnabled(out) {
colorStart = "\x1b[31m"
colorReset = reset
logger.SetPrefix("\n\n" + colorStart)
logger.SetPrefix("\n\n\x1b[31m")
} else {
logger.SetPrefix("\n\n")
}