forked from TrueCloudLab/certificates
Fix linter warning
This commit is contained in:
parent
90d2785776
commit
759aa26a57
1 changed files with 2 additions and 2 deletions
|
@ -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", "")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue