Skip to content

Commit 759aa26

Browse files
committedAug 12, 2022
Fix linter warning
1 parent 90d2785 commit 759aa26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎logging/handler.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ func (l *LoggerHandler) writeEntry(w ResponseLogger, r *http.Request, t time.Tim
120120
}
121121

122122
func sanitizeLogEntry(s string) string {
123-
escaped := strings.Replace(s, "\n", "", -1)
124-
return strings.Replace(escaped, "\r", "", -1)
123+
escaped := strings.ReplaceAll(s, "\n", "")
124+
return strings.ReplaceAll(escaped, "\r", "")
125125
}

0 commit comments

Comments
 (0)