Fix linter warning
This commit is contained in:
parent
a2898061b0
commit
5900b725e6
@ -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] != "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user