mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
chore: Upgrade to golangci-lint v2 (#7236)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
@@ -54,8 +54,8 @@ func logParse(c *caddy.Controller) ([]Rule, error) {
|
||||
|
||||
if strings.Contains(args[len(args)-1], "{") {
|
||||
format = args[len(args)-1]
|
||||
format = strings.Replace(format, "{common}", CommonLogFormat, -1)
|
||||
format = strings.Replace(format, "{combined}", CombinedLogFormat, -1)
|
||||
format = strings.ReplaceAll(format, "{common}", CommonLogFormat)
|
||||
format = strings.ReplaceAll(format, "{combined}", CombinedLogFormat)
|
||||
args = args[:len(args)-1]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user