Fix linter warning
This commit is contained in:
parent
a2898061b0
commit
5900b725e6
1 changed files with 1 additions and 2 deletions
|
|
@ -86,9 +86,8 @@ func replace(what, placeholder, value string) string {
|
||||||
return what
|
return what
|
||||||
}
|
}
|
||||||
|
|
||||||
innerRe := re.Copy()
|
|
||||||
what = re.ReplaceAllStringFunc(what, func(match string) string {
|
what = re.ReplaceAllStringFunc(what, func(match string) string {
|
||||||
matches := innerRe.FindStringSubmatch(match)
|
matches := re.FindStringSubmatch(match)
|
||||||
var v string
|
var v string
|
||||||
|
|
||||||
if matches[2] != "" {
|
if matches[2] != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue