Fix linter warning

This commit is contained in:
Ingo Oppermann 2022-07-04 20:23:36 +02:00
parent a2898061b0
commit 5900b725e6
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -86,9 +86,8 @@ func replace(what, placeholder, value string) string {
return what
}
innerRe := re.Copy()
what = re.ReplaceAllStringFunc(what, func(match string) string {
matches := innerRe.FindStringSubmatch(match)
matches := re.FindStringSubmatch(match)
var v string
if matches[2] != "" {