Fix linter warning

This commit is contained in:
Mariano Cano 2022-08-11 17:47:58 -07:00
parent 90d2785776
commit 759aa26a57

View file

@ -120,6 +120,6 @@ func (l *LoggerHandler) writeEntry(w ResponseLogger, r *http.Request, t time.Tim
} }
func sanitizeLogEntry(s string) string { func sanitizeLogEntry(s string) string {
escaped := strings.Replace(s, "\n", "", -1) escaped := strings.ReplaceAll(s, "\n", "")
return strings.Replace(escaped, "\r", "", -1) return strings.ReplaceAll(escaped, "\r", "")
} }